0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-10 04:12:53 +01:00
discourse-custom-wizard/assets/javascripts/discourse/components/wizard-subscription-authorize.js
merefield c2ffa7699b wip
2023-09-08 10:54:41 +01:00

25 Zeilen
834 B
JavaScript

// import { geoLocationSearch, providerDetails } from "../lib/location-utilities";
//import { ajax } from "discourse/lib/ajax";
import { action, set } from "@ember/object";
// import { equal } from "@ember/object/computed";
// import { A } from "@ember/array";
import { inject as service } from "@ember/service";
import Component from "@glimmer/component";
import { tracked } from "@glimmer/tracking";
import { ajax } from "discourse/lib/ajax";
// import I18n from "I18n";
export default class WizardSubscriptionAuthorize extends Component {
@service siteSettings;
@tracked supplierId = null;
constructor() {
super(...arguments);
/admin/plugins/subscription-client/suppliers
}
@action
authorize() {
window.location.href = `/admin/plugins/subscription-client/authorize?supplier_id=${this.supplierId}`;
}
}