return false; } this.working = true; access.login({ username: this.username, password: this.password }) .then(function () { window.location.hash = '#!dashboard'; }) .then(function () { self.working = false; }) .catch(function () { self.working = false; }); return true; } } ); validator(ViewModel); export default Component.extend({ tag: 'abacus-login', ViewModel, view });
columnTitle: 'endpoint:message-type', columnClass: 'col', attributeName: "messageType" }); columns.push({ columnTitle: 'endpoint:endpoint-count', columnClass: 'col-2', attributeName: 'endpointCount' }); } state.title = 'endpoint:message-types-handled'; state.navbar.addButton({ type: 'refresh', viewModel: this }); }, refresh: function () { this.refreshTimestamp = Date.now(); } }); export default Component.extend({ tag: 'sentinel-messagetypehandled-list', ViewModel, view });
}, addMessageRow: function (name, value) { this.messageRows.push({name: name, value: value}); }, checkAll: function () { this._setCheckMarks(true); }, checkNone: function () { this._setCheckMarks(false); }, checkInvert: function () { this._setCheckMarks(); }, _setCheckMarks: function (value) { each(this.messages, function (item) { item.checked = (value == undefined ? !item.checked : value); }); } }); export default Component.extend({ tag: 'sentinel-message-manage', ViewModel, view });
if (!!this.errors()) { return false; } api.subscriptions.post({ dataStoreId: this.dataStoreId, messageType: this.messageType, inboxWorkQueueUri: this.inboxWorkQueueUri }); this.close(); return false; }, close: function() { router.goto({ resource: 'subscription', action: 'list' }); } } ); validator(ViewModel); export default Component.extend({ tag: 'sentinel-subscription-add', ViewModel, view });
} matrices.post({ name: this.name, rowArgumentId: this.rowArgument.id, columnArgumentId: !!this.columnArgument ? this.columnArgument.id : undefined, dataTypeName: this.dataTypeName }).then(function(){ state.registrationRequested('matrix'); }); this.close(); return false; }, close: function () { router.goto({ resource: 'matrix', action: 'list' }); } }); validator(ViewModel); export default Component.extend({ tag: 'abacus-matrix-add', ViewModel, view });
id: state.routeData.id, name: this.name, formulaId: this.selectedFormula.id, comparison: this.comparison, expectedResult: this.expectedResult, expectedResultDataTypeName: this.expectedResultDataTypeName }) .then(function(){ state.registrationRequested('test'); }); this.close(); return false; }, close: function () { router.goto({ resource: 'test', action: 'list' }); } }); validator(ViewModel); export default Component.extend({ tag: 'abacus-test-item', ViewModel, view });
columns.push({ columnTitle: 'remove', columnClass: 'col-1', stache: '<cs-button-remove click:from="remove" elementClass:from="\'btn-sm\'"/>' }); } state.title = 'test-arguments'; state.navbar.addButton({ type: 'refresh', viewModel: this }); state.navbar.addButton({ type: 'back', viewModel: this }); }, refresh: function() { this.refreshTimestamp = Date.now(); } }); export default Component.extend({ tag: 'abacus-test-argument-list', ViewModel, view });
api.constraints.post({ id: this.constraintId, axis: this.axis, index: this.index, comparison: this.comparison, value: this.value }, { id: this.matrix.id }) .then(function () { state.registrationRequested('matrix-constraint'); }); this.cancel(); return false; }, cancel () { this.constraint = undefined; } }); validator(ViewModel); export default Component.extend({ tag: 'abacus-matrix-constraint', ViewModel, view });
columns.push({ columnTitle: 'endpoint:heartbeat-interval', columnClass: 'col-1', attributeName: 'heartbeatIntervalDuration' }); columns.push({ columnTitle: 'remove', columnClass: 'col-1', stache: '<cs-button-remove click:from="remove" elementClass:from="\'btn-sm\'"/>' }); } state.title = 'endpoint:endpoints'; state.navbar.addButton({ type: 'refresh', viewModel: this }); }, refresh: function () { this.refreshTimestamp = Date.now(); } }); export default Component.extend({ tag: 'sentinel-endpoint-list', ViewModel, view });
}, register: function () { const self = this; if (!!this.map.errors()) { return false; } api.operations.post(this.map.serialize(), { id: this.formula.id }) .then(function () { state.registrationRequested('formula-operation'); self.map = nothing; }); return false; }, cancel () { this.map = new Map(); } }); export default Component.extend({ tag: 'abacus-formula-operation', ViewModel, view });
add: function () { if (!!this.errors()) { return false; } datastores.post({ name: this.name, connectionString: this.connectionString, providerName: this.providerName }); this.close(); return false; }, close: function () { router.goto({ resource: 'datastore', action: 'list' }); } }); validator(ViewModel); export default Component.extend({ tag: 'sentinel-datastore-add', ViewModel, view });