Commit 0bf6c2fa authored by David O'Regan's avatar David O'Regan

Merge branch 'fix/rmistry-339782-27022022' into 'master'

Change Edit to Open in Blob view to maintain consistency

See merge request gitlab-org/gitlab!81759
parents 32226af4 a02c1495
......@@ -178,7 +178,7 @@ export default {
if (this.webIdeText) {
return this.webIdeText;
} else if (this.isBlob) {
return __('Edit in Web IDE');
return __('Open in Web IDE');
} else if (this.isFork) {
return __('Edit fork in Web IDE');
}
......@@ -218,6 +218,9 @@ export default {
};
},
gitpodActionText() {
if (this.isBlob) {
return __('Open in Gitpod');
}
return this.gitpodText || __('Gitpod');
},
computedShowGitpodButton() {
......@@ -247,7 +250,6 @@ export default {
if (!this.computedShowGitpodButton) {
return null;
}
const handleOptions = this.gitpodEnabled
? { href: this.gitpodUrl }
: {
......
......@@ -25668,6 +25668,9 @@ msgstr ""
msgid "Open errors"
msgstr ""
msgid "Open in Gitpod"
msgstr ""
msgid "Open in Web IDE"
msgstr ""
......
......@@ -72,7 +72,7 @@ RSpec.describe 'Projects > Files > User browses LFS files' do
expect(page).not_to have_content('Blame')
expect(page).not_to have_selector(:link_or_button, text: /^Edit$/)
expect(page).to have_selector(:link_or_button, 'Edit in Web IDE')
expect(page).to have_selector(:link_or_button, 'Open in Web IDE')
end
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment