web/satellite: Remove Advanced Report from GUI
Advanced Report is broken and it's causing support tickets. The Advanced Report page must not be linked to until it is fixed. Change-Id: I51d6afeee7584022ec920f311bb4c0d31174fd2c
This commit is contained in:
parent
2e6b4e90f8
commit
9dab10e1d9
@ -42,11 +42,6 @@
|
||||
<p class="price">{{ item.objectPrice | centsToDollars }}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="usage-charges-item-container__detailed-info-container__link-container">
|
||||
<span class="usage-charges-item-container__detailed-info-container__link-container__link" @click="onReportClick">
|
||||
Advanced Report ->
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@ -62,7 +57,6 @@ import { Project } from '@/types/projects';
|
||||
import { Size } from '@/utils/bytesSize';
|
||||
import { SHORT_MONTHS_NAMES } from '@/utils/constants/date';
|
||||
import { MetaUtils } from '@/utils/meta';
|
||||
import { Time } from '@/utils/time';
|
||||
|
||||
// @vue/component
|
||||
@Component({
|
||||
@ -164,24 +158,6 @@ export default class UsageAndChargesItem extends Vue {
|
||||
this.isDetailedInfoShown = !this.isDetailedInfoShown;
|
||||
}
|
||||
|
||||
/**
|
||||
* Opens new tab with advanced report table.
|
||||
*/
|
||||
public onReportClick(): void {
|
||||
const projectID = this.$store.getters.selectedProject.id;
|
||||
const startDate = this.$store.state.paymentsModule.startDate;
|
||||
const endDate = this.$store.state.paymentsModule.endDate;
|
||||
|
||||
const url = new URL(location.origin);
|
||||
|
||||
url.pathname = 'usage-report';
|
||||
url.searchParams.append('projectID', projectID);
|
||||
url.searchParams.append('since', Time.toUnixTimestamp(startDate).toString());
|
||||
url.searchParams.append('before', Time.toUnixTimestamp(endDate).toString());
|
||||
|
||||
window.open(url.href, '_blank');
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns formatted egress depending on amount of bytes.
|
||||
*/
|
||||
|
@ -46,9 +46,6 @@ exports[`UsageAndChargesItem toggling dropdown works correctly 1`] = `
|
||||
<p class="price">USD $1.00</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="usage-charges-item-container__detailed-info-container__link-container"><span class="usage-charges-item-container__detailed-info-container__link-container__link">
|
||||
Advanced Report ->
|
||||
</span></div>
|
||||
</div>
|
||||
</div>
|
||||
`;
|
||||
|
Loading…
Reference in New Issue
Block a user