Skip to content

Commit

Permalink
Deprecate bulk duplicate option
Browse files Browse the repository at this point in the history
This feature is now enabled by default in the Community Console, so this
commit removes the option which let users enable the feature manually.

Change-Id: I57c5e20a446ee784b72018ca71735fd40fa31471
  • Loading branch information
avm99963 committed Aug 15, 2020
1 parent 37c397c commit 4ddca93
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 119 deletions.
28 changes: 0 additions & 28 deletions src/_locales/ca/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@
"message": "Mostra un enllaç \"historial de publicacions\" als perfils d'usuari.",
"description": "Feature checkbox in the options page"
},
"options_batchduplicate": {
"message": "Afegeix l'opció per duplicar diversos fils alhora a la llista de fils de la Consola de la Comunitat.",
"description": "Feature checkbox in the options page"
},
"options_escalatethreads":{
"message": "Activa la <i>flag</i> <code class=\"help\" title=\"Aquesta flag activa la funcionalitat d'escalar fils del fòrum públic als privats a la Consola de la Comunitat.\">enableEscalateThread</code> de la Consola de la Comunitat.",
"description": "Feature checkbox in the options page"
Expand Down Expand Up @@ -82,29 +78,5 @@
"inject_previousposts": {
"message": "Historial de publicacions",
"description": "Link shown in a user profile (in TW and the Community Console) which points to a search showing the user's posts and messages"
},
"inject_duplicatebtn": {
"message": "Duplicar fils",
"description": "Tooltip of the 'duplicate treads' icon shown when selecting multiple threads in the Community Console."
},
"inject_duplicateinto": {
"message": "Duplicar a:",
"description": "Label for the text field in which the user has to enter the thread they want to duplicate into."
},
"inject_duplicateinto_placeholder": {
"message": "Introdueix la URL de la Consola de la Comunitat",
"description": "Placeholder for the URL field."
},
"inject_duplicate_cancel": {
"message": "Cancel·lar",
"description": "Button to cancel the duplication process."
},
"inject_duplicate_confirm": {
"message": "Duplicar",
"description": "Button to duplicate all the threads."
},
"inject_duplicate_progress": {
"message": "Progrés",
"description": "Title for a progress bar which indicates how many threads were duplicated."
}
}
28 changes: 0 additions & 28 deletions src/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@
"message": "Show a \"previous posts\" link in user profiles.",
"description": "Feature checkbox in the options page"
},
"options_batchduplicate": {
"message": "Add the option to duplicate multiple threads at the same time from the Community Console thread list.",
"description": "Feature checkbox in the options page"
},
"options_escalatethreads":{
"message": "Enables the <code class=\"help\" title=\"This flag activates the functionality which allows a PE to escalate threads from the public forums to the private ones in the Community Console.\">enableEscalateThread</code> Community Console flag.",
"description": "Feature checkbox in the options page"
Expand Down Expand Up @@ -82,29 +78,5 @@
"inject_previousposts": {
"message": "Previous posts",
"description": "Link shown in a user profile (in TW and the Community Console) which points to a search showing the user's posts and messages"
},
"inject_duplicatebtn": {
"message": "Mark as duplicate",
"description": "Tooltip of the 'duplicate treads' icon shown when selecting multiple threads in the Community Console."
},
"inject_duplicateinto": {
"message": "Duplicate into:",
"description": "Label for the text field in which the user has to enter the thread they want to duplicate into."
},
"inject_duplicateinto_placeholder": {
"message": "Enter the Community Console URL",
"description": "Placeholder for the URL field."
},
"inject_duplicate_cancel": {
"message": "Cancel",
"description": "Button to cancel the duplication process."
},
"inject_duplicate_confirm": {
"message": "Duplicate",
"description": "Button to duplicate all the threads."
},
"inject_duplicate_progress": {
"message": "Progress",
"description": "Title for a progress bar which indicates how many threads were duplicated."
}
}
28 changes: 0 additions & 28 deletions src/_locales/es/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@
"message": "Muestra un enlace \"historial de publicaciones\" en los perfiles de usuario.",
"description": "Feature checkbox in the options page"
},
"options_batchduplicate": {
"message": "Añade la opción para duplicar varios hilos a la vez en la lista de hilos de la Consola de la Comunidad.",
"description": "Feature checkbox in the options page"
},
"options_escalatethreads":{
"message": "Activa la <i>flag</i> <code class=\"help\" title=\"Esta flag activa la funcionalidad de escalar hilos del foro público a los privados en la Consola de la Comunidad.\">enableEscalateThread</code> de la Consola de la Comunidad.",
"description": "Feature checkbox in the options page"
Expand Down Expand Up @@ -82,29 +78,5 @@
"inject_previousposts": {
"message": "Historial de publicaciones",
"description": "Link shown in a user profile (in TW and the Community Console) which points to a search showing the user's posts and messages"
},
"inject_duplicatebtn": {
"message": "Duplicar hilos",
"description": "Tooltip of the 'duplicate treads' icon shown when selecting multiple threads in the Community Console."
},
"inject_duplicateinto": {
"message": "Duplicar a:",
"description": "Label for the text field in which the user has to enter the thread they want to duplicate into."
},
"inject_duplicateinto_placeholder": {
"message": "Introduce la URL de la Consola de la Comunidad",
"description": "Placeholder for the URL field."
},
"inject_duplicate_cancel": {
"message": "Cancelar",
"description": "Button to cancel the duplication process."
},
"inject_duplicate_confirm": {
"message": "Duplicar",
"description": "Button to duplicate all the threads."
},
"inject_duplicate_progress": {
"message": "Progreso",
"description": "Title for a progress bar which indicates how many threads were duplicated."
}
}
28 changes: 0 additions & 28 deletions src/_locales/ru/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@
"message": "Показывать ссылку \"Сообщения пользователя\" в профилях пользователей.",
"description": "Опция на странице настроек."
},
"options_batchduplicate": {
"message": "Добавляет опцию одновременного дублирования нескольких потоков из списка потоков в Консоли сообщества.",
"description": "Опция на странице настроек."
},
"options_escalatethreads":{
"message": "Включает <code class=\"help\" title=\"Этот флаг активирует функциональность, которая позволяет PE эскалировать потоки из открытых форумов в частные в Консоли сообщества.\">enableEscalateThread</code> флаг Консоли сообщества.",
"description": "Опция на странице настроек."
Expand All @@ -74,29 +70,5 @@
"inject_previousposts": {
"message": "Сообщения пользователя",
"description": "Ссылка отображаемая в профиле пользователя (в TW и в Консоли сообщества), которая указывает на поиск, показывающий посты и ответы пользователя."
},
"inject_duplicatebtn": {
"message": "Отметить как дубликат",
"description": "Подсказка о значке \"дубликат\", отображаемом при выборе нескольких потоков в консоли сообщества."
},
"inject_duplicateinto": {
"message": "Дубликат:",
"description": "Метка для текстового поля, в котором пользователь должен ввести поток, в который он хочет привязать дубликат."
},
"inject_duplicateinto_placeholder": {
"message": "Введите URL-адрес консоли сообщества",
"description": "Заполнитель для поля URL."
},
"inject_duplicate_cancel": {
"message": "Отмена",
"description": "Кнопка, чтобы отменить процесс отметки дубликата."
},
"inject_duplicate_confirm": {
"message": "Дубликат",
"description": "Кнопка для дублирования всех потоков."
},
"inject_duplicate_progress": {
"message": "Прогресс",
"description": "Название для индикатора выполнения, который указывает, сколько потоков было продублировано."
}
}
6 changes: 1 addition & 5 deletions src/console_inject_start.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
chrome.storage.sync.get(null, function(items) {
if (items.loaddrafts || items.batchduplicate) {
if (items.loaddrafts) {
var startup = JSON.parse(document.querySelector("html").getAttribute("data-startup"));

if (items.loaddrafts) {
startup[4][13] = true;
}

if (items.batchduplicate) {
startup[4][58] = true;
}

document.querySelector("html").setAttribute("data-startup", JSON.stringify(startup));
}
});
1 change: 0 additions & 1 deletion src/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ <h4 data-i18n="enhancements"></h4>
<input type="checkbox" id="redirect"> <label for="redirect" data-i18n="redirect"></label> <span style="color: gray;" data-i18n="experimental_label"></span><br>
<input type="checkbox" id="history"> <label for="history" data-i18n="history"></label><br>
<input type="checkbox" id="loaddrafts"> <label for="loaddrafts" data-i18n="loaddrafts"></label> <span style="color: gray;" data-i18n="experimental_label"></span><br>
<input type="checkbox" id="batchduplicate"> <label for="batchduplicate" data-i18n="batchduplicate"></label> <span style="color: gray;" data-i18n="experimental_label"></span><br>
<input type="checkbox" id="increasecontrast"> <label for="increasecontrast" data-i18n="increasecontrast"></label><br>
<input type="checkbox" id="stickysidebarheaders"> <label for="stickysidebarheaders" data-i18n="stickysidebarheaders"></label><br>
</p>
Expand Down
3 changes: 2 additions & 1 deletion src/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ const defaultOptions = {
const deprecatedOptions = [
"list",
"escalatethreads",
"movethreads"
"movethreads",
"batchduplicate"
];

function cleanUpOptions(options) {
Expand Down

0 comments on commit 4ddca93

Please sign in to comment.