summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/assets/javascripts/ide/stores/actions.js8
-rw-r--r--app/views/projects/tree/_tree_header.html.haml6
2 files changed, 7 insertions, 7 deletions
diff --git a/app/assets/javascripts/ide/stores/actions.js b/app/assets/javascripts/ide/stores/actions.js
index 069f94a2026..c01046c8c76 100644
--- a/app/assets/javascripts/ide/stores/actions.js
+++ b/app/assets/javascripts/ide/stores/actions.js
@@ -15,7 +15,7 @@ export const closeDiscardPopup = ({ commit }) =>
export const discardAllChanges = ({ commit, getters, dispatch }) => {
const changedFiles = getters.changedFiles;
- changedFiles.forEach(file => {
+ changedFiles.forEach((file) => {
commit(types.DISCARD_FILE_CHANGES, file);
if (file.tempFile) {
@@ -66,7 +66,7 @@ export const setPanelCollapsedStatus = ({ commit }, { side, collapsed }) => {
export const checkCommitStatus = ({ state }) =>
service
.getBranchData(state.currentProjectId, state.currentBranchId)
- .then(data => {
+ .then((data) => {
const { id } = data.commit;
const selectedBranch =
state.projects[state.currentProjectId].branches[state.currentBranchId];
@@ -85,7 +85,7 @@ export const commitChanges = (
) =>
service
.commit(state.currentProjectId, payload)
- .then(data => {
+ .then((data) => {
const { branch } = payload;
if (!data.short_id) {
flash(data.message);
@@ -122,7 +122,7 @@ export const commitChanges = (
reference: data.id,
});
- getters.changedFiles.forEach(entry => {
+ getters.changedFiles.forEach((entry) => {
commit(types.SET_LAST_COMMIT_DATA, {
entry,
lastCommit,
diff --git a/app/views/projects/tree/_tree_header.html.haml b/app/views/projects/tree/_tree_header.html.haml
index f10eb15b0c6..d1ecef39475 100644
--- a/app/views/projects/tree/_tree_header.html.haml
+++ b/app/views/projects/tree/_tree_header.html.haml
@@ -6,7 +6,7 @@
- addtotree_toggle_attributes = { href: '#', 'data-toggle': 'dropdown', 'data-target': '.add-to-tree-dropdown' }
- else
- addtotree_toggle_attributes = { title: _("You can only add files when you are on a branch"), data: { container: 'body' }, class: 'disabled has-tooltip' }
-
+
%ul.breadcrumb.repo-breadcrumb
%li
= link_to project_tree_path(@project, @ref) do
@@ -14,7 +14,7 @@
- path_breadcrumbs do |title, path|
%li
= link_to truncate(title, length: 40), project_tree_path(@project, tree_join(@ref, path))
-
+
- if current_user
%li
%a.btn.add-to-tree{ addtotree_toggle_attributes }
@@ -58,7 +58,7 @@
continue: continue_params)
= link_to fork_path, method: :post do
#{ _('New directory') }
-
+
%li.divider
%li
= link_to new_project_branch_path(@project) do