Add message when no history exists on projects dashboard (#15002)

* Add message when no history exists on projects dashboard

* Bump version for sql db projects

* Update text, add refresh button

* Remove commented code
This commit is contained in:
Sakshi Sharma
2021-04-07 00:42:11 -07:00
committed by GitHub
parent 9035914d5d
commit addef2d584
5 changed files with 89 additions and 54 deletions

View File

@@ -23,6 +23,7 @@ export const DoNotShowAgain = localize('dataworkspace.doNotShowAgain', "Do not s
export const ProjectsFailedToLoad = localize('dataworkspace.projectsFailedToLoad', "Some projects failed to load. Please open console for more information");
export const fileDoesNotExist = (name: string): string => { return localize('fileDoesNotExist', "File '{0}' doesn't exist", name); };
export const projectNameNull = localize('projectNameNull', "Project name is null");
export const noPreviousData = (tableName: string): string => { return localize('noPreviousData', "Prior {0} will appear here, please run to see the results.", tableName); };
// config settings
export const projectsConfigurationKey = 'projects';
@@ -75,6 +76,9 @@ export const LocalClonePathPlaceholder = localize('dataworkspace.localClonePathP
export const ProjectConfigurationKey = 'projects';
export const ProjectSaveLocationKey = 'defaultProjectSaveLocation';
// Dashboard dialog
export const Refresh = localize('dataworksapce.refresh', 'Refresh');
export namespace cssStyles {
export const title = { 'font-size': '18px', 'font-weight': '600' };
export const tableHeader = { 'text-align': 'left', 'font-weight': '500', 'font-size': '13px', 'user-select': 'text' };

View File

@@ -13,11 +13,13 @@ export interface IconPath {
export class IconPathHelper {
private static extensionContext: vscode.ExtensionContext;
public static folder: IconPath;
public static refresh: IconPath;
public static setExtensionContext(extensionContext: vscode.ExtensionContext) {
IconPathHelper.extensionContext = extensionContext;
IconPathHelper.folder = IconPathHelper.makeIcon('folder', true);
IconPathHelper.refresh = IconPathHelper.makeIcon('refresh', true);
}
private static makeIcon(name: string, sameIcon: boolean = false) {