Skip to content

Commit

Permalink
added missing translation placeholders
Browse files Browse the repository at this point in the history
made 'view' link goto alias version if available
  • Loading branch information
emrysr committed Jun 17, 2019
1 parent 8c2afb6 commit 4e29f21
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions Views/dashboard_list.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,9 @@ function getTranslations(){
'Edit this dashboard layout': "<?php echo _('Edit this dashboard layout') ?>",
'Delete this dashboard': "<?php echo _('Delete this dashboard') ?>…",
'View this dashboard': "<?php echo _('View this dashboard') ?>…",
'Edit Layout': "<?php echo _('Edit Layout') ?>"
'Edit Layout': "<?php echo _('Edit Layout') ?>",
'No dashboards created': "<?php echo _('No dashboards created') ?>",
'Maybe you would like to add your first dashboard using the button bellow.': "<?php echo _('Maybe you would like to add your first dashboard using the button bellow.') ?>"
}
}
</script>
Expand All @@ -216,7 +218,7 @@ function getTranslations(){

<script>
// debugging functions
var _DEBUG_ = true; // output debug messages
var _DEBUG_ = false; // output debug messages
var _debug = {
log: function(){
if(typeof _DEBUG_ !== 'undefined' && _DEBUG_) {
Expand Down Expand Up @@ -351,7 +353,11 @@ classes: { // css class names
success.call(this, arguments);
}
// update the app datastore
if (data.hasOwnProperty(property)) item[property] = data[property];
if (data.hasOwnProperty(property)) {
item[property] = data[property];
item.view = path + 'dashboard/view';
item.view += item.alias.length > 0 ? '/' + item.alias: '?id=' + id;
}
}
vm.Set_field_delayed(event, item, property, value, success2, error, always)
}
Expand Down Expand Up @@ -620,8 +626,9 @@ function(data){
// add urls for edit and view
data.forEach(function(v,i){
let id = data[i].id;
data[i].view = path + 'dashboard/view?id=' + id;
data[i].edit = path + 'dashboard/edit?id=' + id;
data[i].view = path + 'dashboard/view';
data[i].view += v.alias.length > 0 ? '/' + v.alias: '?id=' + id;
});
if(data.length === 0) {
vm.gridData = [];
Expand Down

0 comments on commit 4e29f21

Please sign in to comment.