Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Sharkey
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dima Krasner
Sharkey
Commits
3d0fc09f
Commit
3d0fc09f
authored
6 years ago
by
YuzuRyo61
Committed by
syuilo
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Implement mobile version folder deletion (#4355)
parent
b9757517
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
locales/ja-JP.yml
+1
-0
1 addition, 0 deletions
locales/ja-JP.yml
src/client/app/mobile/views/components/drive.vue
+13
-1
13 additions, 1 deletion
src/client/app/mobile/views/components/drive.vue
with
14 additions
and
1 deletion
locales/ja-JP.yml
+
1
−
0
View file @
3d0fc09f
...
...
@@ -1564,6 +1564,7 @@ mobile/views/components/drive.vue:
folder-name
:
"
フォルダー名"
root-rename-alert
:
"
現在いる場所はルートで、フォルダではないため名前の変更はできません。名前を変更したいフォルダに移動してからやってください。"
root-move-alert
:
"
現在いる場所はルートで、フォルダではないため移動はできません。移動したいフォルダに移動してからやってください。"
root-delete-alert
:
"
現在いる場所はルートで、フォルダではないため削除はできません。削除したいフォルダに移動してからやってください。"
url-prompt
:
"
アップロードしたいファイルのURL"
uploading
:
"
アップロードをリクエストしました。アップロードが完了するまで時間がかかる場合があります。"
...
...
This diff is collapsed.
Click to expand it.
src/client/app/mobile/views/components/drive.vue
+
13
−
1
View file @
3d0fc09f
...
...
@@ -399,7 +399,7 @@ export default Vue.extend({
this
.
moveFolder
();
break
;
case
'
6
'
:
alert
(
this
.
$t
(
'
delet
ion-alert
'
)
);
this
.
delet
eFolder
(
);
break
;
}
},
...
...
@@ -463,6 +463,18 @@ export default Vue.extend({
for
(
const
f
of
Array
.
from
((
this
.
$refs
.
file
as
any
).
files
))
{
(
this
.
$refs
.
uploader
as
any
).
upload
(
f
,
this
.
folder
);
}
},
deleteFolder
()
{
if
(
this
.
folder
==
null
)
{
alert
(
this
.
$t
(
'
root-delete-alert
'
));
return
}
this
.
$root
.
api
(
'
drive/folders/delete
'
,
{
folderId
:
this
.
folder
.
id
}).
then
(
folder
=>
{
this
.
cd
(
this
.
folder
.
parentId
);
});
}
}
});
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment