29 lines
770 B
JavaScript
29 lines
770 B
JavaScript
|
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);
|
||
|
})();
|