nakedobjects.spa
Version:
Single Page Application client for a Naked Objects application.
24 lines • 1.15 kB
JavaScript
import * as Constants from '../constants';
var ApplicationPropertiesViewModel = (function () {
function ApplicationPropertiesViewModel(context, error, configService) {
this.context = context;
this.error = error;
this.configService = configService;
this.setUp();
}
ApplicationPropertiesViewModel.prototype.setUp = function () {
var _this = this;
this.context.getUser().
then(function (u) { return _this.user = u.wrapped(); }).
catch(function (reject) { return _this.error.handleError(reject); });
this.context.getVersion().
then(function (v) { return _this.serverVersion = v.wrapped(); }).
catch(function (reject) { return _this.error.handleError(reject); });
this.serverUrl = this.configService.config.appPath;
this.clientVersion = Constants.clientVersion;
this.applicationName = this.configService.config.applicationName;
};
return ApplicationPropertiesViewModel;
}());
export { ApplicationPropertiesViewModel };
//# sourceMappingURL=application-properties-view-model.js.map