Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show info message when schema is empty #24955

Merged
merged 2 commits into from
Nov 14, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export const labelSelectFolder = localize('objectManagement.labelSelectFolder',
export const DataFileLabel = localize('objectManagement.dataFileLabel', "Data");
export const LogFileLabel = localize('objectManagement.logFileLabel', "Log");
export const BackButtonLabel = localize('objectManagement.backButtonLabel', "Back");
export const SchemaIsEmptyInfoMessage: string = localize('objectManagement.schemaIsEmptyInfoMessage', "The selected schema does not contain any objects.");
barbaravaldez marked this conversation as resolved.
Show resolved Hide resolved

export function ExplicitPermissionsTableLabelSelected(name: string): string { return localize('objectManagement.explicitPermissionsTableLabelSelected', "Explicit permissions for: {0}", name); }
export function EffectivePermissionsTableLabelSelected(name: string): string { return localize('objectManagement.effectivePermissionsTableLabelSelected', "Effective permissions for: {0}", name); }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*--------------------------------------------------------------------------------------------*/

import * as azdata from 'azdata';
import * as vscode from 'vscode';
import * as mssql from 'mssql';
import * as localizedConstants from '../localizedConstants';

Expand Down Expand Up @@ -184,6 +185,8 @@ export abstract class PrincipalDialogBase<ObjectInfoType extends SecurityPrincip
});
const data = this.getSecurableTableData();
await this.setTableData(this.securableTable, data);
} else {
await vscode.window.showInformationMessage(localizedConstants.SchemaIsEmptyInfoMessage);
barbaravaldez marked this conversation as resolved.
Show resolved Hide resolved
}
await button.focus();
}
Expand Down