Skip to content

Commit

Permalink
Fix adminer namespace method. (labring#4581)
Browse files Browse the repository at this point in the history
* Add type status hide/show system app.

Signed-off-by: zzjin <tczzjin@gmail.com>

* Fix typo

Signed-off-by: zzjin <tczzjin@gmail.com>

* Rebase app status.

Signed-off-by: zzjin <tczzjin@gmail.com>

* Fix adminer get workspace user namespace.

Signed-off-by: zzjin <tczzjin@gmail.com>

---------

Signed-off-by: zzjin <tczzjin@gmail.com>
  • Loading branch information
zzjin authored and bxy4543 committed Mar 14, 2024
1 parent 5bd6c45 commit cb014a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/providers/adminer/src/pages/api/apply.ts
Expand Up @@ -35,7 +35,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
}

const adminerName = 'adminer-' + kube_user.name;
const namespace = GetUserDefaultNameSpace(kube_user.name);
const namespace = kc.contexts[0]?.namespace || GetUserDefaultNameSpace(kube_user.name);

let connections: string[] = [];
try {
Expand Down

0 comments on commit cb014a4

Please sign in to comment.