12345678910111213141516171819202122232425262728293031323334 |
- 'use strict';
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
- /*
- *+------------------------------------------------------------------------+
- *| Licensed Materials - Property of IBM
- *| IBM Cognos Products: Dashboard
- *| (C) Copyright IBM Corp. 2018, 2019
- *|
- *| US Government Users Restricted Rights - Use, duplication or disclosure
- *| restricted by GSA ADP Schedule Contract with IBM Corp.
- *+------------------------------------------------------------------------+
- */
- define(['jquery', '../../../app/nls/StringResources'], function ($, resources) {
- var ErrorView = function () {
- function ErrorView() {
- _classCallCheck(this, ErrorView);
- }
- ErrorView.prototype.renderContainer = function renderContainer(data) {
- return $('<div class="errorContainer error">Error: ' + this.makeNlsMessage(data.msg) + '</div>');
- };
- ErrorView.prototype.makeNlsMessage = function makeNlsMessage(msg) {
- return msg.params ? resources.get(msg.str, msg.params) : resources.get(msg.str);
- };
- return ErrorView;
- }();
- return ErrorView;
- });
- //# sourceMappingURL=ErrorView.js.map
|