增加任务详情页复制时是否包括前缀的选项

This commit is contained in:
liuhongyu 2020-04-30 16:43:52 +08:00 committed by mayswind
parent 6f3fe70a68
commit db6699084d
8 changed files with 31 additions and 1 deletions

View file

@ -179,6 +179,7 @@ Navigate to Downloading Tasks Page=转到正在下载列表页面
Stay on Current Page=留在当前页面
Remove Old Tasks After Retrying=重试任务后删除原任务
Confirm Task Removal=任务删除前确认
Task Detail Copy With Perfix=任务详情页复制时包括前缀
RPC List Display Order=RPC 列表显示顺序
Recently Used=最近使用
RPC Alias=RPC 别名

View file

@ -179,6 +179,7 @@ Navigate to Downloading Tasks Page=轉到正在下載工作頁面
Stay on Current Page=留在目前頁面
Remove Old Tasks After Retrying=重試工作後刪除原工作
Confirm Task Removal=工作刪除前確認
Task Detail Copy With Perfix=任務詳情頁複製時包括前綴
RPC List Display Order=RPC 清單顯示順序
Recently Used=最近使用
RPC Alias=RPC 別名

View file

@ -40,6 +40,7 @@
afterCreatingNewTask: 'task-list',
removeOldTaskAfterRetrying: false,
confirmTaskRemoval: true,
taskDetailCopyWithPerfix: true,
afterRetryingTask: 'task-list-downloading',
displayOrder: 'default:asc',
fileListDisplayOrder: 'default:asc',

View file

@ -183,6 +183,7 @@
'Stay on Current Page': 'Stay on Current Page',
'Remove Old Tasks After Retrying': 'Remove Old Tasks After Retrying',
'Confirm Task Removal': 'Confirm Task Removal',
'Task Detail Copy With Perfix': 'Task Detail Copy With Perfix',
'RPC List Display Order': 'RPC List Display Order',
'Recently Used': 'Recently Used',
'RPC Alias': 'RPC Alias',

View file

@ -191,6 +191,10 @@
ariaNgSettingService.setConfirmTaskRemoval(value);
};
$scope.setTaskDetailCopyWithPerfix = function (value) {
ariaNgSettingService.setTaskDetailCopyWithPerfix(value);
};
$scope.setAfterRetryingTask = function (value) {
ariaNgSettingService.setAfterRetryingTask(value);
};

View file

@ -637,7 +637,12 @@
return;
}
var value = "";
var value = '';
if (ariaNgSettingService.getTaskDetailCopyWithPerfix()) {
var name = currentRowTriggeredMenu.find('.setting-key > span').text().trim();
value = name + ': ';
};
currentRowTriggeredMenu.find('.setting-value > span').each(function (i, element) {
if (i > 0) {

View file

@ -387,6 +387,12 @@
setConfirmTaskRemoval: function (value) {
setOption('confirmTaskRemoval', value);
},
getTaskDetailCopyWithPerfix: function () {
return getOption('taskDetailCopyWithPerfix');
},
setTaskDetailCopyWithPerfix: function (value) {
setOption('taskDetailCopyWithPerfix', value);
},
getAfterRetryingTask: function () {
return getOption('afterRetryingTask');
},

View file

@ -182,6 +182,17 @@
</select>
</div>
</div>
<div class="row">
<div class="setting-key setting-key-without-desc col-sm-4">
<span translate>Task Detail Copy With Perfix</span>
</div>
<div class="setting-value col-sm-8">
<select class="form-control" style="width: 100%;" ng-model="context.settings.taskDetailCopyWithPerfix"
ng-change="setTaskDetailCopyWithPerfix(context.settings.taskDetailCopyWithPerfix)"
ng-options="option.value as (option.name | translate) for option in context.trueFalseOptions">
</select>
</div>
</div>
<div class="row">
<div class="setting-key setting-key-without-desc col-sm-4">
<span translate>Import / Export AriaNg Settings</span>