123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683 |
- /**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- var App = require('app');
- var numberUtils = require('utils/number_utils');
- App.WizardStep5Controller = Em.Controller.extend({
- name: "wizardStep5Controller",
- /**
- * Step title
- * Custom if <code>App.ReassignMasterController</code> is used
- * @type {string}
- */
- title: function () {
- if (this.get('content.controllerName') == 'reassignMasterController') {
- return Em.I18n.t('installer.step5.reassign.header');
- }
- return Em.I18n.t('installer.step5.header');
- }.property('content.controllerName'),
- /**
- * Is ReassignWizard used
- * @type {bool}
- */
- isReassignWizard: function () {
- return this.get('content.controllerName') == 'reassignMasterController';
- }.property('content.controllerName'),
- /**
- * Is isHighAvailabilityWizard used
- * @type {bool}
- */
- isHighAvailabilityWizard: function () {
- return this.get('content.controllerName') == 'highAvailabilityWizardController';
- }.property('content.controllerName'),
- /**
- * Is AddServiceWizard used
- * @type {bool}
- */
- isAddServiceWizard: function () {
- return this.get('content.controllerName') == 'addServiceController';
- }.property('content.controllerName'),
- /**
- * Master components which could be assigned to multiple hosts
- * @type {string[]}
- */
- multipleComponents: function () {
- return App.get('components.addableMasterInstallerWizard');
- }.property('App.components.addableMasterInstallerWizard'),
- /**
- * Define state for submit button
- * @type {bool}
- */
- submitDisabled: false,
- /**
- * Trigger for executing host names check for components
- * Should de "triggered" when host changed for some component and when new multiple component is added/removed
- * @type {bool}
- */
- hostNameCheckTrigger: false,
- /**
- * List of hosts
- * @type {Array}
- */
- hosts: [],
- /**
- * Name of multiple component which host name was changed last
- * @type {Object|null}
- */
- componentToRebalance: null,
- /**
- * Name of component which host was changed last
- * @type {string}
- */
- lastChangedComponent: null,
- /**
- * Flag for rebalance multiple components
- * @type {number}
- */
- rebalanceComponentHostsCounter: 0,
- /**
- * @type {Ember.Enumerable}
- */
- servicesMasters: [],
- /**
- * @type {Ember.Enumerable}
- */
- selectedServicesMasters: [],
- /**
- * Is data for current step loaded
- * @type {bool}
- */
- isLoaded: false,
- /**
- * List of host with assigned masters
- * Format:
- * <code>
- * [
- * {
- * host_name: '',
- * hostInfo: {},
- * masterServices: [],
- * masterServicesToDisplay: [] // used only in template
- * },
- * ....
- * ]
- * </code>
- * @type {Ember.Enumerable}
- */
- masterHostMapping: function () {
- var mapping = [], mappingObject, mappedHosts, hostObj;
- //get the unique assigned hosts and find the master services assigned to them
- mappedHosts = this.get("selectedServicesMasters").mapProperty("selectedHost").uniq();
- mappedHosts.forEach(function (item) {
- hostObj = this.get("hosts").findProperty("host_name", item);
- // User may input invalid host name (this is handled in hostname checker). Here we just skip it
- if (!hostObj) return;
- var masterServices = this.get("selectedServicesMasters").filterProperty("selectedHost", item),
- masterServicesToDisplay = [];
- masterServices.mapProperty('display_name').uniq().forEach(function (n) {
- masterServicesToDisplay.pushObject(masterServices.findProperty('display_name', n));
- });
- mappingObject = Em.Object.create({
- host_name: item,
- hostInfo: hostObj.host_info,
- masterServices: masterServices,
- masterServicesToDisplay: masterServicesToDisplay
- });
- mapping.pushObject(mappingObject);
- }, this);
- return mapping.sortProperty('host_name');
- }.property("selectedServicesMasters.@each.selectedHost", 'selectedServicesMasters.@each.isHostNameValid'),
- /**
- * Count of hosts without masters
- * @type {number}
- */
- remainingHosts: function () {
- if (this.get('content.controllerName') === 'installerController') {
- return 0;
- } else {
- return (this.get("hosts.length") - this.get("masterHostMapping.length"));
- }
- }.property('masterHostMapping.length', 'selectedServicesMasters.@each.selectedHost'),
- /**
- * Update submit button status
- * @metohd getIsSubmitDisabled
- */
- getIsSubmitDisabled: function () {
- var isSubmitDisabled = this.get('servicesMasters').someProperty('isHostNameValid', false);
- this.set('submitDisabled', isSubmitDisabled);
- return isSubmitDisabled;
- }.observes('servicesMasters.@each.selectedHost', 'servicesMasters.@each.isHostNameValid'),
- /**
- * Clear controller data (hosts, masters etc)
- * @method clearStep
- */
- clearStep: function () {
- this.set('hosts', []);
- this.set('selectedServicesMasters', []);
- this.set('servicesMasters', []);
- App.StackServiceComponent.find().forEach(function (stackComponent) {
- stackComponent.set('serviceComponentId', 1);
- }, this);
- },
- /**
- * Load controller data (hosts, host components etc)
- * @method loadStep
- */
- loadStep: function () {
- console.log("WizardStep5Controller: Loading step5: Assign Masters");
- this.clearStep();
- this.renderHostInfo();
- this.renderComponents(this.loadComponents());
- this.get('multipleComponents').forEach(function (componentName) {
- this.updateComponent(componentName);
- }, this);
- if (!this.get("selectedServicesMasters").filterProperty('isInstalled', false).length) {
- console.log('no master components to add');
- App.router.send('next');
- }
- },
- /**
- * Used to set showAddControl flag for installer wizard
- * @method updateComponent
- */
- updateComponent: function (componentName) {
- var component = this.last(componentName);
- if (!component) {
- return;
- }
- var services = App.StackService.find().filterProperty('isInstalled', true).mapProperty('serviceName');
- var currentService = componentName.split('_')[0];
- var showControl = !services.contains(currentService);
- if (showControl) {
- if (this.get("selectedServicesMasters").filterProperty("component_name", componentName).length < this.get("hosts.length") && !this.get('isReassignWizard') && !this.get('isHighAvailabilityWizard')) {
- component.set('showAddControl', true);
- } else {
- component.set('showRemoveControl', false);
- }
- }
- },
- /**
- * Load active host list to <code>hosts</code> variable
- * @method renderHostInfo
- */
- renderHostInfo: function () {
- var hostInfo = this.get('content.hosts');
- var result = [];
- for (var index in hostInfo) {
- var _host = hostInfo[index];
- if (_host.bootStatus === 'REGISTERED') {
- result.push(Em.Object.create({
- host_name: _host.name,
- cpu: _host.cpu,
- memory: _host.memory,
- disk_info: _host.disk_info,
- host_info: Em.I18n.t('installer.step5.hostInfo').fmt(_host.name, numberUtils.bytesToSize(_host.memory, 1, 'parseFloat', 1024), _host.cpu)
- }));
- }
- }
- this.set("hosts", result);
- this.sortHosts(this.get('hosts'));
- this.set('isLoaded', true);
- },
- /**
- * Sort list of host-objects by properties (memory - desc, cpu - desc, hostname - asc)
- * @param {object[]} hosts
- */
- sortHosts: function (hosts) {
- hosts.sort(function (a, b) {
- if (a.get('memory') == b.get('memory')) {
- if (a.get('cpu') == b.get('cpu')) {
- return a.get('host_name').localeCompare(b.get('host_name')); // hostname asc
- }
- return b.get('cpu') - a.get('cpu'); // cores desc
- }
- return b.get('memory') - a.get('memory'); // ram desc
- });
- },
- /**
- * Load services info to appropriate variable and return masterComponentHosts
- * @return {Object[]}
- */
- loadComponents: function () {
- var selectedServices = App.StackService.find().filterProperty('isSelected').mapProperty('serviceName');
- var installedServices = App.StackService.find().filterProperty('isInstalled').mapProperty('serviceName');
- var services = installedServices.concat(selectedServices).uniq();
- var selectedNotInstalledServices = this.get('content.services').filterProperty('isSelected').filterProperty('isInstalled', false).mapProperty('serviceName');
- var masterComponents = [];
- //get full list from mock data
- if (this.get('isAddServiceWizard')) {
- masterComponents = App.StackServiceComponent.find().filterProperty('isShownOnAddServiceAssignMasterPage');
- } else {
- masterComponents = App.StackServiceComponent.find().filterProperty('isShownOnInstallerAssignMasterPage');
- }
- var masterHosts = this.get('content.masterComponentHosts'); //saved to local storage info
- var resultComponents = [];
- for (var index = 0; index < services.length; index++) {
- var componentInfo = masterComponents.filterProperty('serviceName', services[index]);
- // If service is already installed and not being added as a new service then render on UI only those master components
- // that have already installed hostComponents.
- // NOTE: On upgrade there might be a prior installed service with non-installed newly introduced serviceComponent
- var isNotSelectedService = !selectedNotInstalledServices.contains(services[index]);
- if (isNotSelectedService) {
- componentInfo = componentInfo.filter(function (_component) {
- return App.HostComponent.find().someProperty('componentName',_component.get('componentName'));
- });
- }
- componentInfo.forEach(function (_componentInfo) {
- if (this.get('multipleComponents').contains(_componentInfo.get('componentName'))) {
- var savedComponents = masterHosts.filterProperty('component', _componentInfo.get('componentName'));
- if (savedComponents.length) {
- savedComponents.forEach(function (item) {
- var multipleMasterHost = {};
- multipleMasterHost.component_name = _componentInfo.get('componentName');
- multipleMasterHost.display_name = _componentInfo.get('displayName');
- multipleMasterHost.selectedHost = item.hostName;
- multipleMasterHost.serviceId = services[index];
- multipleMasterHost.isInstalled = item.isInstalled;
- multipleMasterHost.isServiceCoHost = false;
- resultComponents.push(multipleMasterHost);
- })
- } else {
- var multipleMasterHosts = this.selectHost(_componentInfo.get('componentName'));
- multipleMasterHosts.forEach(function (_host) {
- var multipleMasterHost = {};
- multipleMasterHost.component_name = _componentInfo.get('componentName');
- multipleMasterHost.display_name = _componentInfo.get('displayName');
- multipleMasterHost.selectedHost = _host;
- multipleMasterHost.serviceId = services[index];
- multipleMasterHost.isInstalled = false;
- multipleMasterHost.isServiceCoHost = false;
- resultComponents.push(multipleMasterHost);
- });
- }
- } else {
- var savedComponent = masterHosts.findProperty('component', _componentInfo.get('componentName'));
- var componentObj = {};
- componentObj.component_name = _componentInfo.get('componentName');
- componentObj.display_name = _componentInfo.get('displayName');
- componentObj.selectedHost = savedComponent ? savedComponent.hostName : this.selectHost(_componentInfo.get('componentName')); // call the method that plays selectNode algorithm or fetches from server
- componentObj.isInstalled = savedComponent ? savedComponent.isInstalled : false;
- componentObj.serviceId = services[index];
- componentObj.isServiceCoHost = App.StackServiceComponent.find().findProperty('componentName', _componentInfo.get('componentName')).get('isCoHostedComponent') && !this.get('isReassignWizard');
- resultComponents.push(componentObj);
- }
- }, this);
- }
- return resultComponents;
- },
- /**
- * @param {string} componentName
- * @returns {bool}
- * @private
- * @method _isHiveCoHost
- */
- _isHiveCoHost: function (componentName) {
- return ['HIVE_METASTORE', 'WEBHCAT_SERVER'].contains(componentName) && !this.get('isReassignWizard');
- },
- /**
- * Put master components to <code>selectedServicesMasters</code>, which will be automatically rendered in template
- * @param {Ember.Enumerable} masterComponents
- * @method renderComponents
- */
- renderComponents: function (masterComponents) {
- var installedServices = App.StackService.find().filterProperty('isSelected').filterProperty('isInstalled', false).mapProperty('serviceName'); //list of shown services
- var result = [];
- var serviceComponentId, previousComponentName;
- masterComponents.forEach(function (item) {
- var serviceComponent = App.StackServiceComponent.find().findProperty('componentName', item.component_name);
- var showRemoveControl = installedServices.contains(serviceComponent.get('stackService.serviceName')) &&
- (masterComponents.filterProperty('component_name', item.component_name).length > 1);
- var componentObj = Em.Object.create(item);
- console.log("TRACE: render master component name is: " + item.component_name);
- var masterComponent = App.StackServiceComponent.find().findProperty('componentName', item.component_name);
- if (masterComponent.get('isMasterWithMultipleInstances')) {
- previousComponentName = item.component_name;
- componentObj.set('serviceComponentId', result.filterProperty('component_name', item.component_name).length + 1);
- componentObj.set("showRemoveControl", showRemoveControl);
- }
- componentObj.set('isHostNameValid', true);
- result.push(componentObj);
- }, this);
- this.set("selectedServicesMasters", result);
- if (this.get('isReassignWizard')) {
- var components = result.filterProperty('component_name', this.get('content.reassign.component_name'));
- components.setEach('isInstalled', false);
- this.set('servicesMasters', components);
- } else {
- this.set('servicesMasters', result);
- }
- },
- /**
- * Update dependent co-hosted components according to the change in the component host
- * @method updateCoHosts
- */
- updateCoHosts: function () {
- var components = App.StackServiceComponent.find().filterProperty('isOtherComponentCoHosted');
- var selectedServicesMasters = this.get('selectedServicesMasters');
- components.forEach(function (component) {
- var componentName = component.get('componentName');
- var hostComponent = selectedServicesMasters.findProperty('component_name', componentName);
- var dependentCoHosts = component.get('coHostedComponents');
- dependentCoHosts.forEach(function (coHostedComponent) {
- var dependentHostComponent = selectedServicesMasters.findProperty('component_name', coHostedComponent);
- if (hostComponent && dependentHostComponent) dependentHostComponent.set('selectedHost', hostComponent.get('selectedHost'));
- }, this);
- }, this);
- }.observes('selectedServicesMasters.@each.selectedHost'),
- /**
- * select and return host for component by scheme
- * Scheme is an object that has keys which compared to number of hosts,
- * if key more that number of hosts, then return value of that key.
- * Value is index of host in hosts array.
- *
- * @param {object} componentName
- * @param {object} hosts
- * @return {string}
- * @method getHostForComponent
- */
- getHostForComponent: function (componentName, hosts) {
- var component = App.StackServiceComponent.find().findProperty('componentName', componentName);
- if (component) {
- var selectionScheme = App.StackServiceComponent.find().findProperty('componentName', componentName).get('selectionSchemeForMasterComponent');
- } else {
- return hosts[0];
- }
- if (hosts.length === 1 || $.isEmptyObject(selectionScheme)) {
- return hosts[0];
- } else {
- for (var i in selectionScheme) {
- if (window.isFinite(i)) {
- if (hosts.length < window.parseInt(i)) {
- return hosts[selectionScheme[i]];
- }
- }
- }
- return hosts[selectionScheme['else']]
- }
- },
- /**
- * Get list of host names for master component with multiple instances
- * @param {Object} component
- * @param {Object} hosts
- * @returns {string[]}
- * @method getHostsForComponent
- */
- getHostsForComponent: function (component, hosts) {
- var defaultNoOfMasterHosts = component.get('defaultNoOfMasterHosts');
- var masterHosts = [];
- if (hosts.length < defaultNoOfMasterHosts) {
- defaultNoOfMasterHosts = hosts.length;
- }
- for (var index = 0; index < defaultNoOfMasterHosts; index++) {
- masterHosts.push(hosts[index]);
- }
- return masterHosts;
- },
- /**
- * Return hostName of masterNode for specified service
- * @param componentName
- * @return {string|string[]}
- * @method selectHost
- */
- selectHost: function (componentName) {
- var component = App.StackServiceComponent.find().findProperty('componentName', componentName);
- var hostNames = this.get('hosts').mapProperty('host_name');
- if (hostNames.length > 1 && App.StackServiceComponent.find().filterProperty('isNotPreferableOnAmbariServerHost').mapProperty('componentName').contains(componentName)) {
- hostNames = this.get('hosts').mapProperty('host_name').filter(function (item) {
- return item !== location.hostname;
- }, this);
- }
- if (this.get('multipleComponents').contains(componentName)) {
- if (component.get('defaultNoOfMasterHosts') > 1) {
- return this.getHostsForComponent(component, hostNames);
- } else {
- return [this.getHostForComponent(componentName, hostNames)];
- }
- } else {
- return this.getHostForComponent(componentName, hostNames);
- }
- },
- /**
- * On change callback for inputs
- * @param {string} componentName
- * @param {string} selectedHost
- * @param {number} serviceComponentId
- * @method assignHostToMaster
- */
- assignHostToMaster: function (componentName, selectedHost, serviceComponentId) {
- var flag = this.isHostNameValid(componentName, selectedHost);
- this.updateIsHostNameValidFlag(componentName, serviceComponentId, flag);
- if (serviceComponentId) {
- this.get('selectedServicesMasters').filterProperty('component_name', componentName).findProperty("serviceComponentId", serviceComponentId).set("selectedHost", selectedHost);
- }
- else {
- this.get('selectedServicesMasters').findProperty("component_name", componentName).set("selectedHost", selectedHost);
- }
- },
- /**
- * Determines if hostName is valid for component:
- * <ul>
- * <li>host name shouldn't be empty</li>
- * <li>host should exist</li>
- * <li>host should have only one component with <code>componentName</code></li>
- * </ul>
- * @param {string} componentName
- * @param {string} selectedHost
- * @returns {boolean} true - valid, false - invalid
- * @method isHostNameValid
- */
- isHostNameValid: function (componentName, selectedHost) {
- return (selectedHost.trim() !== '') &&
- this.get('hosts').mapProperty('host_name').contains(selectedHost) &&
- (this.get('selectedServicesMasters').
- filterProperty('component_name', componentName).
- mapProperty('selectedHost').
- filter(function (h) {
- return h === selectedHost;
- }).length <= 1);
- },
- /**
- * Update <code>isHostNameValid</code> property with <code>flag</code> value
- * for component with name <code>componentName</code> and
- * <code>serviceComponentId</code>-property equal to <code>serviceComponentId</code>-parameter value
- * @param {string} componentName
- * @param {number} serviceComponentId
- * @param {bool} flag
- * @method updateIsHostNameValidFlag
- */
- updateIsHostNameValidFlag: function (componentName, serviceComponentId, flag) {
- if (componentName) {
- if (serviceComponentId) {
- this.get('selectedServicesMasters').filterProperty('component_name', componentName).findProperty("serviceComponentId", serviceComponentId).set("isHostNameValid", flag);
- } else {
- this.get('selectedServicesMasters').findProperty("component_name", componentName).set("isHostNameValid", flag);
- }
- }
- },
- /**
- * Returns last component of selected type
- * @param {string} componentName
- * @return {Em.Object|null}
- * @method last
- */
- last: function (componentName) {
- return this.get("selectedServicesMasters").filterProperty("component_name", componentName).get("lastObject");
- },
- /**
- * Add new component to ZooKeeper Server and Hbase master
- * @param {string} componentName
- * @return {bool} true - added, false - not added
- * @method addComponent
- */
- addComponent: function (componentName) {
- /*
- * Logic: If ZooKeeper or Hbase service is selected then there can be
- * minimum 1 ZooKeeper or Hbase master in total, and
- * maximum 1 ZooKeeper or Hbase on every host
- */
- var maxNumMasters = this.get("hosts.length"),
- currentMasters = this.get("selectedServicesMasters").filterProperty("component_name", componentName),
- newMaster = null,
- masterHosts = null,
- suggestedHost = null,
- i = 0,
- lastMaster = null;
- if (!currentMasters.length) {
- console.log('ALERT: Zookeeper service was not selected');
- return false;
- }
- if (currentMasters.get("length") < maxNumMasters) {
- currentMasters.set("lastObject.showAddControl", false);
- currentMasters.set("lastObject.showRemoveControl", true);
- //create a new master component host based on an existing one
- newMaster = Em.Object.create({});
- lastMaster = currentMasters.get("lastObject");
- newMaster.set("display_name", lastMaster.get("display_name"));
- newMaster.set("component_name", lastMaster.get("component_name"));
- newMaster.set("selectedHost", lastMaster.get("selectedHost"));
- newMaster.set("isInstalled", false);
- if (currentMasters.get("length") === (maxNumMasters - 1)) {
- newMaster.set("showAddControl", false);
- } else {
- newMaster.set("showAddControl", true);
- }
- newMaster.set("showRemoveControl", true);
- //get recommended host for the new Zookeeper server
- masterHosts = currentMasters.mapProperty("selectedHost").uniq();
- for (i = 0; i < this.get("hosts.length"); i++) {
- if (!(masterHosts.contains(this.get("hosts")[i].get("host_name")))) {
- suggestedHost = this.get("hosts")[i].get("host_name");
- break;
- }
- }
- newMaster.set("selectedHost", suggestedHost);
- newMaster.set("serviceComponentId", (currentMasters.get("lastObject.serviceComponentId") + 1));
- this.get("selectedServicesMasters").insertAt(this.get("selectedServicesMasters").indexOf(lastMaster) + 1, newMaster);
- this.set('componentToRebalance', componentName);
- this.incrementProperty('rebalanceComponentHostsCounter');
- this.toggleProperty('hostNameCheckTrigger');
- return true;
- }
- return false;//if no more zookeepers can be added
- },
- /**
- * Remove component from ZooKeeper server or Hbase Master
- * @param {string} componentName
- * @param {number} serviceComponentId
- * @return {bool} true - removed, false - no
- * @method removeComponent
- */
- removeComponent: function (componentName, serviceComponentId) {
- var currentMasters = this.get("selectedServicesMasters").filterProperty("component_name", componentName);
- //work only if the multiple master service is selected in previous step
- if (currentMasters.length <= 1) {
- return false;
- }
- this.get("selectedServicesMasters").removeAt(this.get("selectedServicesMasters").indexOf(currentMasters.findProperty("serviceComponentId", serviceComponentId)));
- currentMasters = this.get("selectedServicesMasters").filterProperty("component_name", componentName);
- if (currentMasters.get("length") < this.get("hosts.length")) {
- currentMasters.set("lastObject.showAddControl", true);
- }
- if (currentMasters.get("length") === 1) {
- currentMasters.set("lastObject.showRemoveControl", false);
- }
- this.set('componentToRebalance', componentName);
- this.incrementProperty('rebalanceComponentHostsCounter');
- this.toggleProperty('hostNameCheckTrigger');
- return true;
- },
- /**
- * Submit button click handler
- * @metohd submit
- */
- submit: function () {
- this.getIsSubmitDisabled();
- if (!this.get('submitDisabled')) {
- App.router.send('next');
- }
- }
- });
|