added a teams link to the breadcrumbs trail when the team page was used to navigate to something (the team is in the url)
This commit is contained in:
parent
b0274ad639
commit
b6c1f44e03
3 changed files with 36 additions and 10 deletions
|
|
@ -173,11 +173,20 @@ export default function DeviceProvider(props: PropsWithChildren<Props>) {
|
|||
let url = pondURL(
|
||||
"/devices/" +
|
||||
id +
|
||||
"?as=" + as +
|
||||
(keys ? "&keys=" + keys.toString() : "") +
|
||||
(keys ? "?keys=" + keys.toString() : "") +
|
||||
(types ? "&types=" + types.toString() : ""),
|
||||
demo
|
||||
);
|
||||
if (as) {
|
||||
url = pondURL(
|
||||
"/devices/" +
|
||||
id +
|
||||
"?as=" + as +
|
||||
(keys ? "&keys=" + keys.toString() : "") +
|
||||
(types ? "&types=" + types.toString() : ""),
|
||||
demo
|
||||
);
|
||||
}
|
||||
return new Promise<AxiosResponse<pond.Device>>((resolve, reject) => {
|
||||
get<pond.Device>(url).then(resp => {
|
||||
resp.data = pond.Device.fromObject(resp.data)
|
||||
|
|
@ -498,11 +507,19 @@ export default function DeviceProvider(props: PropsWithChildren<Props>) {
|
|||
let url = pondURL(
|
||||
"/devices/" +
|
||||
id +
|
||||
"/componentPreferences?as=" +
|
||||
as +
|
||||
(keys ? "&keys=" + keys.toString() : "") +
|
||||
"/componentPreferences" +
|
||||
(keys ? "?keys=" + keys.toString() : "") +
|
||||
(types ? "&types=" + types.toString() : "")
|
||||
)
|
||||
if (as) {
|
||||
url = pondURL(
|
||||
"/devices/" +
|
||||
id +
|
||||
"/componentPreferences?as=" + as +
|
||||
(keys ? "&keys=" + keys.toString() : "") +
|
||||
(types ? "&types=" + types.toString() : "")
|
||||
)
|
||||
}
|
||||
return new Promise<AxiosResponse<pond.ListDeviceComponentPreferencesResponse>>((resolve, reject) => {
|
||||
get<pond.ListDeviceComponentPreferencesResponse>(url).then(resp => {
|
||||
resp.data = pond.ListDeviceComponentPreferencesResponse.fromObject(resp.data)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue