didInsertElement() {
		this._super(...arguments);
		let that = this;

		$modal = $("#modal-query-insertion");
		this.get("queryInsertion").on("showModal", function() {
			try {
				if (that) {
					that.set("template", that.get("queryInsertion.template"));
					that.set("query", that.get("queryInsertion.query"));
				}
			} catch (e) {
				console.warn(e)
			} finally {
				$modal.show();
			}
		});

		$modal.on("customShow", function() {
			$modal.show();
			loadTemplate(that);
		});
	}
// After the element has been inserted into the DOM
After the element has been inserted into the DOM
After the element has been inserted into the DOM
didInsertElement() {
		this._super(...arguments);
		let that = this;
		$modal = $("#modal-query-insertion");
		this.get("queryInsertion").on("showModal", function() {
			try {
				if (that) {
					that.set("template", that.get("queryInsertion.template"));
					that.set("query", that.get("queryInsertion.query"));
				}
			} catch (e) {
				console.warn(e)
			} finally {
				$modal.show();
			}
		});
		$modal.on("customShow", function() {
			$modal.show();
			loadTemplate(that);
		});
	}
didInsertElement ( ) { this . _super ( ... arguments ) ; let that = this ; $modal = $ ( "#modal-query-insertion" ) ; this . get ( "queryInsertion" ) . on ( "showModal" , function ( ) { try { if ( that ) { that . set ( "template" , that . get ( "queryInsertion.template" ) ) ; that . set ( "query" , that . get ( "queryInsertion.query" ) ) ; } } catch ( e ) { console . warn ( e ) } finally { $modal . show ( ) ; } } ) ; $modal . on ( "customShow" , function ( ) { $modal . show ( ) ; loadTemplate ( that ) ; } ) ; }
After the element has been inserted into the DOM
After the element has been inserted into the DOM