DEV: Update `SpreadsheetEditor` to use `@glimmer/component` (#13)
Now that all of our singletons have been converted to true Ember Services, we can remove our custom `discourse/component/glimmer` superclass and use explicit injection
This commit is contained in:
parent
7b37c6acc1
commit
388c4a58e5
|
@ -5,14 +5,14 @@ import {
|
||||||
findTableRegex,
|
findTableRegex,
|
||||||
tokenRange,
|
tokenRange,
|
||||||
} from "../discourse-table-builder/lib/utilities";
|
} from "../discourse-table-builder/lib/utilities";
|
||||||
import GlimmerComponent from "discourse/components/glimmer";
|
import Component from "@glimmer/component";
|
||||||
import { ajax } from "discourse/lib/ajax";
|
import { ajax } from "discourse/lib/ajax";
|
||||||
import { popupAjaxError } from "discourse/lib/ajax-error";
|
import { popupAjaxError } from "discourse/lib/ajax-error";
|
||||||
import I18n from "I18n";
|
import I18n from "I18n";
|
||||||
import { schedule } from "@ember/runloop";
|
import { schedule } from "@ember/runloop";
|
||||||
import { tracked } from "@glimmer/tracking";
|
import { tracked } from "@glimmer/tracking";
|
||||||
|
|
||||||
export default class SpreadsheetEditor extends GlimmerComponent {
|
export default class SpreadsheetEditor extends Component {
|
||||||
@tracked showEditReason = false;
|
@tracked showEditReason = false;
|
||||||
spreadsheet = null;
|
spreadsheet = null;
|
||||||
defaultColWidth = 150;
|
defaultColWidth = 150;
|
||||||
|
|
Loading…
Reference in New Issue