Skip to content

Switch resource_preview to resource_view #15902

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/lexicon/en/default.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@
$_lang['resource_management'] = 'Manage resources';
$_lang['resource_name'] = 'Resource name';
$_lang['resource_name_new'] = 'New Resource Name';
$_lang['resource_preview'] = 'Preview';
$_lang['resource_view'] = 'View';
$_lang['resource_overview'] = 'Overview';
$_lang['resource_settings'] = 'Resource Settings';
$_lang['resource_type'] = 'Resource Type';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public function prepareRow(xPDOObject $object)

$row['menu'][] = '-';
$row['menu'][] = [
'text' => $this->modx->lexicon('resource_preview'),
'text' => $this->modx->lexicon('resource_view'),
'handler' => 'this.preview',
];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ Ext.extend(MODx.tree.Resource,MODx.tree.Tree,{
if (ui.hasClass('pview') && a.preview_url != '') {
m.push('-');
m.push({
text: _('resource_preview')
text: _('resource_view')
,handler: this.preview
});
}
Expand Down