Skip to content

Commit

Permalink
remove unused arg
Browse files Browse the repository at this point in the history
  • Loading branch information
hashishaw committed Jul 11, 2024
1 parent 31e0970 commit d9a4d40
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 17 deletions.
14 changes: 0 additions & 14 deletions ui/app/components/clients/attribution.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ import { waitFor } from '@ember/test-waiters';
* @param {string} responseTimestamp - ISO timestamp created in serializer to timestamp the response, renders in bottom left corner below attribution chart
* @param {boolean} isHistoricalMonth - when true data is from a single, historical month so side-by-side charts should display for attribution data
* @param {array} upgradesDuringActivity - array of objects containing version history upgrade data
* @param {boolean} isSecretsSyncActivated - boolean to determine if secrets sync is activated
*/

export default class Attribution extends Component {
Expand Down Expand Up @@ -75,19 +74,6 @@ export default class Attribution extends Component {
}
}

get attributionLegend() {
const attributionLegend = [
{ key: 'entity_clients', label: 'entity clients' },
{ key: 'non_entity_clients', label: 'non-entity clients' },
{ key: 'acme_clients', label: 'ACME clients' },
];

if (this.args.isSecretsSyncActivated) {
attributionLegend.push({ key: 'secret_syncs', label: 'secrets sync clients' });
}
return attributionLegend;
}

get formattedStartDate() {
if (!this.args.startTimestamp) return null;
return parseAPITimestamp(this.args.startTimestamp, 'MMMM yyyy');
Expand Down
1 change: 0 additions & 1 deletion ui/app/components/clients/page/overview.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
/>
{{#if this.hasAttributionData}}
<Clients::Attribution
@isSecretsSyncActivated={{this.flags.secretsSyncIsActivated}}
@totalUsageCounts={{this.totalUsageCounts}}
@newUsageCounts={{this.newClientCounts}}
@totalClientAttribution={{this.totalClientAttribution}}
Expand Down
2 changes: 0 additions & 2 deletions ui/tests/integration/components/clients/attribution-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,6 @@ module('Integration | Component | clients/attribution', function (hooks) {

await render(hbs`
<Clients::Attribution
@isSecretsSyncActivated={{true}}
@totalClientAttribution={{this.totalClientAttribution}}
@responseTimestamp={{this.timestamp}}
@startTimestamp="2022-06-01T23:00:11.050Z"
Expand Down Expand Up @@ -270,7 +269,6 @@ module('Integration | Component | clients/attribution', function (hooks) {
});
await render(hbs`
<Clients::Attribution
@isSecretsSyncActivated={{true}}
@totalClientAttribution={{this.totalClientAttribution}}
@responseTimestamp={{this.timestamp}}
@startTimestamp="2022-06-01T23:00:11.050Z"
Expand Down

0 comments on commit d9a4d40

Please sign in to comment.