@lvce-editor/source-control-worker 3.3.0 → 3.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1864,7 +1864,7 @@ const GenerateCommitMessage$1 = 'Generate Commit Message';
|
|
|
1864
1864
|
const Refresh$2 = 'Refresh';
|
|
1865
1865
|
const MessageEnterToCommitOnMaster = `Message (Enter) to commit on 'master'`;
|
|
1866
1866
|
const SourceControlInput$1 = 'Source Control Input';
|
|
1867
|
-
const
|
|
1867
|
+
const NoSourceControlProvider = 'No source control provider is enabled or installed.';
|
|
1868
1868
|
|
|
1869
1869
|
const openChanges = () => {
|
|
1870
1870
|
return i18nString(OpenChanges);
|
|
@@ -1908,8 +1908,8 @@ const messageEnterToCommitOnMaster = () => {
|
|
|
1908
1908
|
const sourceControlInput = () => {
|
|
1909
1909
|
return i18nString(SourceControlInput$1);
|
|
1910
1910
|
};
|
|
1911
|
-
const
|
|
1912
|
-
return i18nString(
|
|
1911
|
+
const noSourceControlProvider = () => {
|
|
1912
|
+
return i18nString(NoSourceControlProvider);
|
|
1913
1913
|
};
|
|
1914
1914
|
|
|
1915
1915
|
const loadContent = async (state, savedState) => {
|
|
@@ -3367,14 +3367,13 @@ const renderItems = (oldState, newState) => {
|
|
|
3367
3367
|
inputMessage,
|
|
3368
3368
|
inputPlaceholder,
|
|
3369
3369
|
items,
|
|
3370
|
-
platform,
|
|
3371
3370
|
sourceControlButtons,
|
|
3372
3371
|
visibleItems
|
|
3373
3372
|
} = newState;
|
|
3374
3373
|
if (initial) {
|
|
3375
3374
|
return [SetDom2, id, []];
|
|
3376
3375
|
}
|
|
3377
|
-
const unavailableMessage =
|
|
3376
|
+
const unavailableMessage = enabledProviderIds.length === 0 ? noSourceControlProvider() : '';
|
|
3378
3377
|
const dom = getSourceControlVirtualDom(visibleItems, sourceControlButtons, items.length === 0, inputPlaceholder, inputMessage, unavailableMessage);
|
|
3379
3378
|
return [SetDom2, id, dom];
|
|
3380
3379
|
};
|