Browse Source

UI-1210: Do not display the spare/buy numbers buttons when a main faxbox is already configured

4.3
Joris Tirado 10 years ago
parent
commit
ee232027f2
3 changed files with 4 additions and 1 deletions
  1. +1
    -0
      submodules/strategy/strategy.js
  2. +2
    -0
      views/strategy-faxingnum.html
  3. +1
    -1
      views/strategy-layout.html

+ 1
- 0
submodules/strategy/strategy.js View File

@ -433,6 +433,7 @@ define(function(require){
};
}
}),
actionLinksEnabled: _.isEmpty(callflow.flow.data),
spareLinkEnabled: (_.countBy(accountNumbers, function(number) {return number.used_by ? 'assigned' : 'spare';})['spare'] > 0),
},
template = monster.template(self, 'strategy-'+templateName, templateData);


+ 2
- 0
views/strategy-faxingnum.html View File

@ -15,6 +15,7 @@
<div class="number-actions">
<a href="#" class="monster-link blue cancel-link pull-right">{{ i18n.close }}</a>
<div class="action-links nav-bar clearfix">
{{#if actionLinksEnabled}}
<a href="#" class="spare-link monster-link pull-left{{#unless spareLinkEnabled}} disabled{{/unless}}"><i class="fa fa-file-text-o monster-orange fa-lg"></i>{{ i18n.strategy.numberLinks.spare }}</a>
<ul class="nav pull-left">
<li class="dropdown">
@ -26,5 +27,6 @@
</ul>
</li>
</ul>
{{/if}}
</div>
</div>

+ 1
- 1
views/strategy-layout.html View File

@ -100,7 +100,7 @@
<div class="element-header-outer clearfix">
<div class="element-header-inner">
<div class="title">
<i class="fa fa-comments"></i>
<i class="fa fa-fax"></i>
<span>{{ i18n.strategy.sectionTitles.faxingnum }}</span>
</div>
<div class="summary">


Loading…
Cancel
Save