Skip to content

Commit

Permalink
Revert "💜 Cc 7187/purple banner for linking existing clusters (#20275)"
Browse files Browse the repository at this point in the history
This reverts commit 5119667.
  • Loading branch information
chris-hut committed Mar 11, 2024
1 parent 731f276 commit 560b2cf
Show file tree
Hide file tree
Showing 11 changed files with 2 additions and 222 deletions.
3 changes: 0 additions & 3 deletions .changelog/20275.txt

This file was deleted.

Expand Up @@ -11,7 +11,7 @@ export default class HashiCorpConsul extends Component {
@service('env') env;

get consulVersion() {
const suffix = this.env.isEnterprise ? '+ent' : '';
const suffix = !['', 'oss'].includes(this.env.var('CONSUL_BINARY_TYPE')) ? '+ent' : '';
return `${this.env.var('CONSUL_VERSION')}${suffix}`;
}
}
24 changes: 0 additions & 24 deletions ui/packages/consul-ui/app/components/link-to-hcp-banner/index.hbs

This file was deleted.

22 changes: 0 additions & 22 deletions ui/packages/consul-ui/app/components/link-to-hcp-banner/index.js

This file was deleted.

3 changes: 0 additions & 3 deletions ui/packages/consul-ui/app/services/env.js
Expand Up @@ -7,9 +7,6 @@ import Service from '@ember/service';
import { env } from 'consul-ui/env';

export default class EnvService extends Service {
get isEnterprise() {
return !['', 'oss'].includes(this.var('CONSUL_BINARY_TYPE'));
}
// deprecated
// TODO: Remove this elsewhere in the app and use var instead
env(key) {
Expand Down
34 changes: 0 additions & 34 deletions ui/packages/consul-ui/app/services/hcp-link-status.js

This file was deleted.

Expand Up @@ -18,9 +18,6 @@ html[data-route^='dc.services.instance'] .app-view > header dl {
margin-bottom: 23px;
margin-right: 50px;
}
html[data-route^='dc.services.index'] .link-to-hcp-banner {
margin: 0 -48px;
}
html[data-route^='dc.services.instance'] .app-view > header dt {
font-weight: var(--token-typography-font-weight-bold);
}
Expand Down
2 changes: 1 addition & 1 deletion ui/packages/consul-ui/app/templates/dc/services/index.hbs
Expand Up @@ -62,7 +62,7 @@ as |route|>
(or route.params.nspace route.model.user.token.Namespace 'default')

as |sort filters items partition nspace|}}
<LinkToHcpBanner/>

<AppView>
<BlockSlot @name="header">
<h1>
Expand Down
32 changes: 0 additions & 32 deletions ui/packages/consul-ui/tests/acceptance/link-to-hcp-banner-test.js

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 560b2cf

Please sign in to comment.