Sha256: 975ba5d3aef916c26635310f53eeae69d9f30e3a4700397315226726667f63ad

Contents?: true

Size: 870 Bytes

Versions: 12

Compression:

Stored size: 870 Bytes

Contents

({
  initComponent() {
    const me = this;
    me.callParent();
    // const form = me.getForm();

    const window = this.netzkeGetParentComponent();
    const parent_view = window.netzkeGetParentComponent();

    this.serverConfig.parent_id =
      parent_view.serverConfig.parent_id || parent_view.serverConfig.selected;

    // const textname = form.findField("import_data");
    const importbutton = me.actions["apply"].items[0];

    importbutton.on("click", function(_t, _e, _ops) {
      me.netzkeGetComponent("result").updateBodyHtml("");
    });
  },

  setResult(html) {
    const result = this.netzkeGetComponent("result");
    result.updateBodyHtml(html);

    const window = this.netzkeGetParentComponent();
    const parent_view = window.netzkeGetParentComponent();

    if (parent_view && parent_view.reload) {
      parent_view.reload();
    }
  }
});

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
marty-14.3.0 app/components/marty/import_view/client/import_view.js
marty-14.0.0 app/components/marty/import_view/client/import_view.js
marty-13.0.2 app/components/marty/import_view/client/import_view.js
marty-11.0.0 app/components/marty/import_view/client/import_view.js
marty-10.0.3 app/components/marty/import_view/client/import_view.js
marty-10.0.2 app/components/marty/import_view/client/import_view.js
marty-10.0.0 app/components/marty/import_view/client/import_view.js
marty-9.5.1 app/components/marty/import_view/client/import_view.js
marty-9.5.0 app/components/marty/import_view/client/import_view.js
marty-9.3.3 app/components/marty/import_view/client/import_view.js
marty-9.3.2 app/components/marty/import_view/client/import_view.js
marty-9.3.0 app/components/marty/import_view/client/import_view.js