Looking for some assistance with this code snippet:
<b-btn
variant="primary"
class="btn-sm"
:disabled="updatePending || !row.enabled"
@click="changeState(row, row.dt ? 'activate' : 'start')">
Activate
</b-btn>
...........
methods: {
async changeState(channel, newMode) {
const { id, type } = channel;
const data = await this.getToken();
window.open("https://en.wikipedia.org/", "_blank");
return;
}
Upon clicking the button, a new tab fails to open.
The issue appears to be related to await this.getToken()
. Removing this line of code resolves the problem.