This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enterState: function() { | |
console.log("entering offlineState"); | |
// present the login dialog box | |
var _loginPane = ScaleUI.LoginPane.create(); | |
_loginPane.append(); | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
systemStatus: SC.View.design(SC.ContentDisplay, { | |
layout: { bottom: 24, left: 24, width: 109, height: 141 }, | |
contentBinding: 'ScaleUI.statusController', | |
contentDisplayProperties: 'dataOnline dataMirrored systemOK'.w(), | |
render: function(context, firstTime) { | |
var dataOnline = null; | |
var dataMirrored = null; | |
var systemOK = null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enterState: function() { | |
... | |
var _dnsConfigs = ScaleModel.store.find(ScaleModel.DNSConfig); | |
ScaleUI.dnsConfigsController.set('content', _dnsConfigs); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
var _dnsConfigs = ScaleModel.getDNSConfigs(); | |
ScaleUI.dnsConfigsController.set('content', _dnsConfigs); | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
editView: ScaleUI.SystemSectionEditView.design({ | |
useStaticLayout: YES, | |
layout: { top: 0, left: 50, right: 0 }, | |
classNames: ['edit'], | |
contentBinding: 'ScaleUI.activeDirectoryController', | |
contentDisplayProperties: ['domain', 'server', 'username', 'password'], | |
childViews: 'domainField serverField usernameField passwordField'.w(), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ScaleUI.SystemSectionDetailView = SC.View.extend({ | |
layout: { top: 0, left: 0, right: 0}, | |
useStaticLayout: YES, | |
isVisibleBinding: '.parentView.parentView.isDetail', | |
childViews: 'showEditButton'.w(), | |
showEditButton: SC.ButtonView.extend({ | |
useStaticLayout: YES, | |
action: 'editClicked', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ListviewTest.testController = SC.ArrayController.create({ | |
content: [ { 'name': 'Item 1', 'description': 'This is item 1' }, | |
{ 'name': 'Item 2', 'description': 'This is item 2' } ], | |
}); | |
ListviewTest.mainPage = SC.Page.design({ | |
// The main pane is made visible on screen as soon as your app is loaded. | |
// Add childViews to this pane for views to display immediately on page |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ScaleUI.taskTagController = SC.ArrayController.create( | |
/** @scope ScaleUI.taskTagController.prototype */ { | |
queuedTasks: function() { | |
var content = this.get('content'); | |
if(!SC.none(content)) { | |
return content.filterProperty('state', TaskState.QUEUED); | |
} | |
}.property('@each.state').cacheable(), |
OlderNewer