citadel-realms/js/Window.js

29 lines
770 B
JavaScript
Raw Permalink Normal View History

2024-11-12 17:12:37 -05:00
var _a;
import GObject from 'gi://GObject';
import Adw from 'gi://Adw';
export class Window extends Adw.ApplicationWindow {
constructor(application) {
super({ application: application });
}
configureRealm(realm) {
this._configureRealm.configure(realm);
this._navView.push(this._configureRealm);
}
get realms_view() {
return this._realmsView;
}
vfunc_close_request() {
super.vfunc_close_request();
this.run_dispose();
return true;
}
}
_a = Window;
(() => {
GObject.registerClass({
GTypeName: 'RealmsWindow',
Template: 'resource:///com/subgraph/citadel/Realms/ui/Window.ui',
InternalChildren: ['realmsView', 'configureRealm', 'navView'],
}, _a);
})();