Skip to content

Commit

Permalink
auto update repository name
Browse files Browse the repository at this point in the history
  • Loading branch information
isra67 committed Sep 29, 2017
1 parent 4a08906 commit f122da5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions public/app/defconfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ var defcfg = {
, 'sip_log': {'type':'sel','options':'debug,info,warning,error','position':3}
, 'tunnel_flag': {'type':'sel','options':'0,1','position':4}
, 'autoupdate': {'type':'sel','options':'0,1','position':5}
, 'update_repo': {'type':'sel','options':'production,development','position':6}
, 'timezone': {'type':'timezone','position':1}

};
1 change: 1 addition & 0 deletions public/app/lang.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ var langstr = {
, 'app_log': 'App logging level'
, 'tunnel_flag': 'Enable/disable remote access'
, 'autoupdate': 'Install updates automatically'
, 'update_repo': 'Repository address'
, 'command': 'Application'
, 'sip': 'SIP'
, 'devices': 'Audio device'
Expand Down
2 changes: 1 addition & 1 deletion public/views/config.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ <h3>Configuration</h3>
<li ng-repeat="k in keys" ng-show="k !== 'timezones'">
<h4><span class="label label-info">{{langtxt(k)}}</span></h4>
<div ng-repeat="(ke,va) in customers[k]" class="row"
ng-hide="(va.indexOf('button_') > -1) || (ke === 'uptime') || (username == 'admin' && (ke === 'sip_log' || ke === 'app_log'))">
ng-hide="(va.indexOf('button_') > -1) || (ke === 'uptime') || (username == 'admin' && (ke === 'sip_log' || ke === 'app_log' || ke === 'update_repo'))">
<span class="col-sm-4 text-right"> {{langtxt(ke)}} </span>
<input type="text" maxlength="128" class="col-sm-6" title="{{ke}}: {{somename_$index}}"
ng-change="changeItem(k,ke,somename_$index)"
Expand Down

0 comments on commit f122da5

Please sign in to comment.