VendorListView.js 968 B

123456789101112131415161718192021222324252627282930
  1. "use strict";
  2. /**
  3.  * Licensed Materials - Property of IBM
  4.  * IBM Cognos Products: Cognos Analytics
  5.  * Copyright IBM Corp. 2015, 2017
  6.  * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7.  */
  8. define(['underscore', 'doT', 'bi/admin/common/ui/GroupListView', 'text!bi/admin/datasource/templates/VendorListTemplate.html', 'text!bi/admin/datasource/templates/NewVendorListTemplate.html'], function (_, dot, GroupListView, listTemp, newListTemp, datasources) {
  9. 'use strict'; //NOSONAR: meant to be strict
  10. var VendorListView = GroupListView.extend({
  11. simpleList: true,
  12. template: listTemp,
  13. /**
  14. * @constructor
  15. */
  16. init: function init(options) {
  17. _.extend(this, options);
  18. VendorListView.inherited('init', this, arguments);
  19. if (this.glassContext.isDevInstall()) {
  20. this.template = newListTemp;
  21. }
  22. }
  23. });
  24. return VendorListView;
  25. });