Update i18n import to the aliased retrospring/i18n
This commit is contained in:
parent
8247c8864f
commit
bee75584d0
|
@ -1,7 +1,7 @@
|
|||
import Rails from '@rails/ujs';
|
||||
import swal from 'sweetalert';
|
||||
|
||||
import I18n from '../../../../legacy/i18n';
|
||||
import I18n from 'retrospring/i18n';
|
||||
import { showNotification, showErrorNotification } from 'utilities/notifications';
|
||||
|
||||
export function commentDestroyHandler(event: Event): void {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import Rails from '@rails/ujs';
|
||||
|
||||
import I18n from '../../../../legacy/i18n';
|
||||
import I18n from 'retrospring/i18n';
|
||||
import { showNotification, showErrorNotification } from 'utilities/notifications';
|
||||
|
||||
export function commentCreateHandler(event: KeyboardEvent): boolean {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import Rails from '@rails/ujs';
|
||||
|
||||
import I18n from '../../../../legacy/i18n';
|
||||
import I18n from 'retrospring/i18n';
|
||||
import { showNotification, showErrorNotification } from 'utilities/notifications';
|
||||
|
||||
export function commentSmileHandler(event: Event): void {
|
||||
|
|
|
@ -2,7 +2,7 @@ import Rails from '@rails/ujs';
|
|||
import { showErrorNotification, showNotification } from 'utilities/notifications';
|
||||
import swal from 'sweetalert';
|
||||
|
||||
import I18n from '../../../legacy/i18n';
|
||||
import I18n from 'retrospring/i18n';
|
||||
|
||||
export function answerboxDestroyHandler(event: Event): void {
|
||||
event.preventDefault();
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import Rails from '@rails/ujs';
|
||||
|
||||
import I18n from '../../../legacy/i18n';
|
||||
import I18n from 'retrospring/i18n';
|
||||
import { showNotification, showErrorNotification } from 'utilities/notifications';
|
||||
|
||||
export function answerboxSmileHandler(event: Event): void {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import Rails from '@rails/ujs';
|
||||
|
||||
import I18n from '../../../legacy/i18n';
|
||||
import I18n from 'retrospring/i18n';
|
||||
import { showNotification, showErrorNotification } from 'utilities/notifications';
|
||||
|
||||
export function answerboxSubscribeHandler(event: Event): void {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import Rails from '@rails/ujs';
|
||||
import swal from 'sweetalert';
|
||||
|
||||
import I18n from '../../../legacy/i18n';
|
||||
import I18n from 'retrospring/i18n';
|
||||
import { showErrorNotification } from 'utilities/notifications';
|
||||
|
||||
export function updateDeleteButton(increment = true): void {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import Rails from '@rails/ujs';
|
||||
import swal from 'sweetalert';
|
||||
|
||||
import I18n from '../../../../legacy/i18n';
|
||||
import I18n from 'retrospring/i18n';
|
||||
import { updateDeleteButton } from '../delete';
|
||||
import { showNotification, showErrorNotification } from 'utilities/notifications';
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import Rails from '@rails/ujs';
|
||||
|
||||
import I18n from '../../../legacy/i18n';
|
||||
import I18n from 'retrospring/i18n';
|
||||
import { updateDeleteButton } from './delete';
|
||||
import { showErrorNotification } from 'utilities/notifications';
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import Rails from '@rails/ujs';
|
||||
import { showNotification, showErrorNotification } from 'utilities/notifications';
|
||||
import I18n from '../../../legacy/i18n';
|
||||
import I18n from 'retrospring/i18n';
|
||||
|
||||
export function createListHandler(event: Event): void {
|
||||
const button = event.target as HTMLButtonElement;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import Rails from '@rails/ujs';
|
||||
import swal from 'sweetalert';
|
||||
import { showNotification, showErrorNotification } from 'utilities/notifications';
|
||||
import I18n from '../../../legacy/i18n';
|
||||
import I18n from 'retrospring/i18n';
|
||||
|
||||
export function destroyListHandler(event: Event): void {
|
||||
event.preventDefault();
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import Rails from '@rails/ujs';
|
||||
import { showNotification, showErrorNotification } from 'utilities/notifications';
|
||||
import I18n from '../../../legacy/i18n';
|
||||
import I18n from 'retrospring/i18n';
|
||||
|
||||
export function listMembershipHandler(event: Event): void {
|
||||
const checkbox = event.target as HTMLInputElement;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import Rails from '@rails/ujs';
|
||||
|
||||
import I18n from '../../../legacy/i18n';
|
||||
import I18n from 'retrospring/i18n';
|
||||
import { showNotification, showErrorNotification } from 'utilities/notifications';
|
||||
|
||||
export function banCheckboxHandler(event: Event): void {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import Rails from '@rails/ujs';
|
||||
import swal from 'sweetalert';
|
||||
|
||||
import I18n from '../../../../legacy/i18n';
|
||||
import I18n from 'retrospring/i18n';
|
||||
import { showNotification, showErrorNotification } from 'utilities/notifications';
|
||||
|
||||
export function destroyCommentHandler(event: Event): void {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import Rails from '@rails/ujs';
|
||||
|
||||
import I18n from '../../../../legacy/i18n';
|
||||
import I18n from 'retrospring/i18n';
|
||||
import { showNotification, showErrorNotification } from 'utilities/notifications';
|
||||
|
||||
export function commentCreateHandler(event: KeyboardEvent): boolean {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import Rails from '@rails/ujs';
|
||||
import swal from 'sweetalert';
|
||||
|
||||
import I18n from '../../../legacy/i18n';
|
||||
import I18n from 'retrospring/i18n';
|
||||
import { showNotification, showErrorNotification } from 'utilities/notifications';
|
||||
|
||||
export function destroyReportHandler(event: Event): void {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import Rails from '@rails/ujs';
|
||||
|
||||
import I18n from '../../../legacy/i18n';
|
||||
import I18n from 'retrospring/i18n';
|
||||
import { showNotification, showErrorNotification } from 'utilities/notifications';
|
||||
|
||||
export function privilegeCheckHandler(event: Event): void {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import Rails from '@rails/ujs';
|
||||
|
||||
import I18n from '../../../legacy/i18n';
|
||||
import I18n from 'retrospring/i18n';
|
||||
import { showNotification, showErrorNotification } from 'utilities/notifications';
|
||||
|
||||
export function voteReportHandler(event: Event): void {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import Rails from '@rails/ujs';
|
||||
import { showErrorNotification, showNotification } from 'utilities/notifications';
|
||||
import I18n from '../../../legacy/i18n';
|
||||
import I18n from 'retrospring/i18n';
|
||||
|
||||
export function questionboxAllHandler(event: Event): void {
|
||||
const button = event.target as HTMLButtonElement;
|
||||
|
|
|
@ -2,7 +2,7 @@ import Rails from '@rails/ujs';
|
|||
import { showErrorNotification, showNotification } from 'utilities/notifications';
|
||||
import swal from 'sweetalert';
|
||||
|
||||
import I18n from '../../../legacy/i18n';
|
||||
import I18n from 'retrospring/i18n';
|
||||
|
||||
export function questionboxDestroyHandler(event: Event): void {
|
||||
event.preventDefault();
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import Rails from '@rails/ujs';
|
||||
import { showErrorNotification, showNotification } from 'utilities/notifications';
|
||||
import I18n from '../../../legacy/i18n';
|
||||
import I18n from 'retrospring/i18n';
|
||||
|
||||
export function questionboxUserHandler(event: Event): void {
|
||||
const button = event.target as HTMLButtonElement;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import Rails from '@rails/ujs';
|
||||
import { showNotification, showErrorNotification } from 'utilities/notifications';
|
||||
import I18n from '../../../legacy/i18n';
|
||||
import I18n from 'retrospring/i18n';
|
||||
|
||||
export function userActionHandler(event: Event): void {
|
||||
const button: HTMLButtonElement = event.target as HTMLButtonElement;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import Rails from '@rails/ujs';
|
||||
import swal from 'sweetalert';
|
||||
|
||||
import I18n from '../../legacy/i18n';
|
||||
import I18n from 'retrospring/i18n';
|
||||
import { showNotification, showErrorNotification } from 'utilities/notifications';
|
||||
|
||||
export function reportDialog(type: string, target: string): void {
|
||||
|
|
Loading…
Reference in New Issue