Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
凌波微步_大先生
dashboard
提交
44afd16f
D
dashboard
项目概览
凌波微步_大先生
/
dashboard
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dashboard
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
44afd16f
编写于
1月 24, 2019
作者:
M
Marcin Maciaszczyk
提交者:
Kubernetes Prow Robot
1月 24, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix breadcrumb for logs and exec views (#3534)
* Fix logs breadcrumb * Fix exec breadcrumb
上级
ea4e02aa
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
6 addition
and
4 deletion
+6
-4
src/app/frontend/common/components/breadcrumbs/component.ts
src/app/frontend/common/components/breadcrumbs/component.ts
+1
-1
src/app/frontend/common/params/params.ts
src/app/frontend/common/params/params.ts
+2
-2
src/app/frontend/logs/component.ts
src/app/frontend/logs/component.ts
+1
-1
src/app/frontend/logs/state.ts
src/app/frontend/logs/state.ts
+1
-0
src/app/frontend/shell/state.ts
src/app/frontend/shell/state.ts
+1
-0
未找到文件。
src/app/frontend/common/components/breadcrumbs/component.ts
浏览文件 @
44afd16f
...
...
@@ -104,7 +104,7 @@ export class BreadcrumbsComponent implements OnInit {
const
breadcrumb
=
new
Breadcrumb
();
breadcrumb
.
label
=
this
.
breadcrumbs_
.
getDisplayName
(
state
);
breadcrumb
.
stateLink
=
this
.
state_
.
href
(
state
.
name
,
null
);
breadcrumb
.
stateLink
=
this
.
state_
.
href
(
state
.
name
,
this
.
state_
.
params
);
return
breadcrumb
;
}
...
...
src/app/frontend/common/params/params.ts
浏览文件 @
44afd16f
...
...
@@ -51,7 +51,7 @@ export class SearchStateParams extends StateParams {
export
class
LogsStateParams
extends
StateParams
{
constructor
(
public
resourceNamespace
:
string
,
public
pod
Name
:
string
,
public
resourceType
:
string
)
{
public
resourceNamespace
:
string
,
public
resource
Name
:
string
,
public
resourceType
:
string
)
{
super
();
}
}
...
...
@@ -77,5 +77,5 @@ export function addNamespacedResourceStateParamsToUrl(url: string): string {
}
export
function
addLogsStateParamsToUrl
(
url
:
string
):
string
{
return
`
${
url
}
/:resourceNamespace/:
pod
Name/:resourceType`
;
return
`
${
url
}
/:resourceNamespace/:
resource
Name/:resourceType`
;
}
src/app/frontend/logs/component.ts
浏览文件 @
44afd16f
...
...
@@ -67,7 +67,7 @@ export class LogsComponent implements OnDestroy {
const
namespace
=
this
.
state_
.
params
.
resourceNamespace
;
const
resourceType
=
this
.
state_
.
params
.
resourceType
;
let
podName
=
this
.
state_
.
params
.
pod
Name
;
let
podName
=
this
.
state_
.
params
.
resource
Name
;
this
.
sourceSubscription
=
logService
.
getResource
(
`source/
${
namespace
}
/
${
podName
}
/
${
resourceType
}
`
)
...
...
src/app/frontend/logs/state.ts
浏览文件 @
44afd16f
...
...
@@ -31,6 +31,7 @@ export const logsState: Ng2StateDeclaration = {
data
:
{
kdBreadcrumbs
:
{
label
:
'
Logs
'
,
parent
:
'
pod.detail
'
,
}
},
views
:
{
...
...
src/app/frontend/shell/state.ts
浏览文件 @
44afd16f
...
...
@@ -45,6 +45,7 @@ export const shellState: Ng2StateDeclaration = {
data
:
{
kdBreadcrumbs
:
{
label
:
'
Shell
'
,
parent
:
'
pod.detail
'
,
}
},
};
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录