Merge branch 'develop' into feat/save-recorded-audio
This commit is contained in:
@@ -100,7 +100,7 @@
|
||||
"NO": "cancelar"
|
||||
}
|
||||
},
|
||||
"SETTINGS": "Confirgurações",
|
||||
"SETTINGS": "Configurações",
|
||||
"FORM": {
|
||||
"UPDATE": "Atualizar a equipa",
|
||||
"CREATE": "Criar uma equipa",
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
"FILTER": "Filtrar por",
|
||||
"SORT": "Classificar por",
|
||||
"LOCALE": "Localidade",
|
||||
"SETTINGS_BUTTON": "Confirgurações",
|
||||
"SETTINGS_BUTTON": "Configurações",
|
||||
"NEW_BUTTON": "Novo artigo",
|
||||
"DROPDOWN_OPTIONS": {
|
||||
"PUBLISHED": "Publicado",
|
||||
@@ -121,7 +121,7 @@
|
||||
"COUNT_LABEL": "artigos",
|
||||
"ADD": "Adicionar localidade",
|
||||
"VISIT": "Visitar site",
|
||||
"SETTINGS": "Confirgurações",
|
||||
"SETTINGS": "Configurações",
|
||||
"DELETE": "Excluir"
|
||||
},
|
||||
"PORTAL_CONFIG": {
|
||||
|
||||
@@ -473,7 +473,7 @@
|
||||
"WIDGET_BUILDER": "Construtor de Widget",
|
||||
"BOT_CONFIGURATION": "Configuração do Bot"
|
||||
},
|
||||
"SETTINGS": "Confirgurações",
|
||||
"SETTINGS": "Configurações",
|
||||
"FEATURES": {
|
||||
"LABEL": "Funcionalidades",
|
||||
"DISPLAY_FILE_PICKER": "Exibir seletor de arquivos no widget",
|
||||
|
||||
@@ -333,7 +333,7 @@
|
||||
"ARTICLES": "Artigos",
|
||||
"CATEGORIES": "Categorias",
|
||||
"LOCALES": "Localidades",
|
||||
"SETTINGS": "Confirgurações"
|
||||
"SETTINGS": "Configurações"
|
||||
},
|
||||
"CHANNELS": "Canais",
|
||||
"SET_AUTO_OFFLINE": {
|
||||
|
||||
@@ -100,7 +100,7 @@
|
||||
"NO": "Cancelar"
|
||||
}
|
||||
},
|
||||
"SETTINGS": "Confirgurações",
|
||||
"SETTINGS": "Configurações",
|
||||
"FORM": {
|
||||
"UPDATE": "Atualizar equipe",
|
||||
"CREATE": "Criar nova equipe",
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<script>
|
||||
import V4Button from 'dashboard/components-next/button/Button.vue';
|
||||
import { useAlert, useTrack } from 'dashboard/composables';
|
||||
import fromUnixTime from 'date-fns/fromUnixTime';
|
||||
import format from 'date-fns/format';
|
||||
import ReportFilterSelector from './components/FilterSelector.vue';
|
||||
import { GROUP_BY_FILTER } from './constants';
|
||||
import { REPORTS_EVENTS } from '../../../../helper/AnalyticsHelper/events';
|
||||
import { generateFileName } from 'dashboard/helper/downloadHelper';
|
||||
import ReportContainer from './ReportContainer.vue';
|
||||
import ReportHeader from './components/ReportHeader.vue';
|
||||
|
||||
@@ -79,11 +78,17 @@ export default {
|
||||
},
|
||||
downloadAgentReports() {
|
||||
const { from, to } = this;
|
||||
const fileName = `agent-report-${format(
|
||||
fromUnixTime(to),
|
||||
'dd-MM-yyyy'
|
||||
)}.csv`;
|
||||
this.$store.dispatch('downloadAgentReports', { from, to, fileName });
|
||||
const fileName = generateFileName({
|
||||
type: 'agent',
|
||||
to,
|
||||
businessHours: this.businessHours,
|
||||
});
|
||||
this.$store.dispatch('downloadAgentReports', {
|
||||
from,
|
||||
to,
|
||||
fileName,
|
||||
businessHours: this.businessHours,
|
||||
});
|
||||
},
|
||||
onFilterChange({ from, to, groupBy, businessHours }) {
|
||||
this.from = from;
|
||||
|
||||
Reference in New Issue
Block a user