From 0881ac1d79c5ea0702e23348dd6dd968c29ff4fb Mon Sep 17 00:00:00 2001 From: Rudy Flores <68666202+rudyflores@users.noreply.github.com> Date: Thu, 28 Sep 2023 16:25:43 -0400 Subject: [PATCH] add back tag code lost from merge Signed-off-by: Rudy Flores <68666202+rudyflores@users.noreply.github.com> --- .../src/webviews/src/edit-attributes/App.tsx | 13 +++++++++++++ .../src/webviews/src/edit-attributes/types.ts | 1 + 2 files changed, 14 insertions(+) diff --git a/packages/zowe-explorer/src/webviews/src/edit-attributes/App.tsx b/packages/zowe-explorer/src/webviews/src/edit-attributes/App.tsx index b15dcfd43e..0d44c55652 100644 --- a/packages/zowe-explorer/src/webviews/src/edit-attributes/App.tsx +++ b/packages/zowe-explorer/src/webviews/src/edit-attributes/App.tsx @@ -15,6 +15,7 @@ import isEqual from "lodash.isequal"; const vscodeApi = acquireVsCodeApi(); export function App() { + const notSupported = "NOT SUPPORTED"; const [readonly, setReadonly] = useState(false); const [allowUpdate, setAllowUpdate] = useState(false); const [attributes, setAttributes] = useState>({ @@ -111,6 +112,7 @@ export function App() { }; return all; }, {}), + tag: attributes.tag ?? notSupported, }; setAttributes({ @@ -155,6 +157,17 @@ export function App() {
{attributes.current.name}
+ {attributes.initial?.directory ?? false ? null : ( +
+ updateFileAttributes("tag", e.target.value)} + > + Tag + +
+ )}
diff --git a/packages/zowe-explorer/src/webviews/src/edit-attributes/types.ts b/packages/zowe-explorer/src/webviews/src/edit-attributes/types.ts index baed9f91a3..5abc08315f 100644 --- a/packages/zowe-explorer/src/webviews/src/edit-attributes/types.ts +++ b/packages/zowe-explorer/src/webviews/src/edit-attributes/types.ts @@ -26,4 +26,5 @@ export type FileAttributes = { directory: boolean; group: string; perms: FilePermissions; + tag?: string; };