|
|
@@ -66,6 +66,12 @@ singlefile.extension.ui.bg.button = (() => {
|
|
|
setBadgeBackgroundColor: { color: ACTIVE_COLOR },
|
|
|
setBadgeText: { text: BUTTON_DEFAULT_BADGE_MESSAGE }
|
|
|
},
|
|
|
+ edit: {
|
|
|
+ setBadgeBackgroundColor: { color: DEFAULT_COLOR },
|
|
|
+ setBadgeText: { text: BUTTON_DEFAULT_BADGE_MESSAGE },
|
|
|
+ setTitle: { title: BUTTON_DEFAULT_TOOLTIP_MESSAGE },
|
|
|
+ setIcon: { path: DEFAULT_ICON_PATH }
|
|
|
+ },
|
|
|
end: {
|
|
|
setBadgeBackgroundColor: { color: ACTIVE_COLOR },
|
|
|
setBadgeText: { text: BUTTON_OK_BADGE_MESSAGE },
|
|
|
@@ -123,6 +129,7 @@ singlefile.extension.ui.bg.button = (() => {
|
|
|
onStart,
|
|
|
onForbiddenDomain,
|
|
|
onError,
|
|
|
+ onEdit,
|
|
|
onEnd,
|
|
|
refreshTab
|
|
|
};
|
|
|
@@ -169,6 +176,10 @@ singlefile.extension.ui.bg.button = (() => {
|
|
|
refresh(tabId, getButtonState("error"));
|
|
|
}
|
|
|
|
|
|
+ function onEdit(tabId) {
|
|
|
+ refresh(tabId, getButtonState("edit"));
|
|
|
+ }
|
|
|
+
|
|
|
function onEnd(tabId, autoSave) {
|
|
|
refresh(tabId, autoSave ? getButtonState("default", true) : getButtonState("end"));
|
|
|
}
|