From a3f208c1bee4bfbd803953f2bd0ea25c06887b35 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Tue, 29 Dec 2020 18:22:31 -0600 Subject: [PATCH] Admin: make awaiting approval actions work --- app/soapbox/actions/admin.js | Bin 1931 -> 3277 bytes .../features/admin/awaiting_approval.js | Bin 1317 -> 2699 bytes app/soapbox/reducers/admin.js | Bin 1191 -> 1960 bytes app/styles/components/admin.scss | 27 ++++++++++++++++++ 4 files changed, 27 insertions(+) diff --git a/app/soapbox/actions/admin.js b/app/soapbox/actions/admin.js index 118f26992d002af96386dbd9667c71b17f0a6f0a..4329aa670ffa47e0c2c276ed8d8c8ddd74d13948 100644 GIT binary patch literal 3277 zcmcIlU2ozr5PauX>>ELf;2qSH5QICVwr~mDD~f_?qiYh&G1Z+A|NYkas!i-9<g8})Im4YNrIn0+&>*vE_^SoMrKkT>5`OZ1G z&dufjf&O5A}-Qq`Go3^ZH zq#mtl)0Vp+)wHQd4chje;~JG|ih4Hk!I~;fu^pwRNJeSZvveLE-8IZX)M^u#;-o>6 zTJ3;i5LMu`s+w=N?&g9Xau+0nv=Zq?+vyw!JWOIZ)1%MH{1}Dt zB8gAoi$#6rN9hPI0{}+&nZ;lo!<70wc(vh$aF62`BY60h9RVnd)&=-qN~Vp0bREqQ zw?f7|vnt4}05GOW%B`Wux(R(F7=8Z47X&AmcgS#PL&359fWMO1VkD)Qhvb8p=+lW@ z;eri$gDL9HvBo$YA4<-Ezs7->gGCri*d3jO4L0Oo%dlc7*V*7&MSEq?iC{mMh`djG z^F~dl;;|^lTIns^*LsAeX)R(oQ}pOkxP)+uPk2p=sdk#5O0{xIK-37|WsurHGDr*G zV$?n*tUsIN$nDdlvtZeuMKaAVFi3{K-<~6RBb?;^#9{C|_9N0m%H`zL2hE16L8o2H zscF~g!zpp$r?^xSv|+QR@);?o8{$w=QCTRpDpLEd1yjHk1N9BeE9O(mlJ~DNv3x44 zO{>#uO2q7eG@FReSw=ovI~iFQj>727dbpy=opLgta;c&6FhkK@$p5giZ1Nc|{{bH> B=RN=c delta 12 TcmX>r+0DOU71QPzmWM0=A)^G< diff --git a/app/soapbox/features/admin/awaiting_approval.js b/app/soapbox/features/admin/awaiting_approval.js index 8e716d6447140f9b2fafc23e8fe476d12c2227e1..503e668090f90569e6ae139d15a87b2d7c6a0847 100644 GIT binary patch literal 2699 zcmcImO>f&c5WVYH%uNzt%h;!6*j#+^g=( zua0Yvr^D~Hp@V1>6I~eFf|p6~{=)ZGHA5?X@S@lZVl$)A_>*oInXvE=gE1<2XvMm{ zdRqDjv?=%2C^|k=y=oe2#z&z;4_MRk%4v4-p7 zkt02`uc<3%1!+Jt=lO;?0D5kQUfNIq12t_6bF{)JnnIQrE$gyyOsOq~=Sge;EHjvX z%kvc`ncgM%m+&XMX}$+=gV<>~G7P>fF;8ydekE1Iw1&{8fFAgh;j-2cDSfs(V}fZ3 zq^N*4!EMIQ*GXHt1?s0gFVvpaxe)rEe;)*HCxM>Z5mU?#M7axdD$u3G*@Qg$qw)kX z{lIN2$ZB4kKSljX4H7%-J={1^aD?s{(imyF19KF*pei&?EX=%PJ!@&;BXp=rTlixI z2hkWi!n9EpYgUr;I?|8kK>i_k7B?kx(em6H02JoPWrnbD);7K7#?B~1rpKxdtkE2% z=vEPE?>7>Qarjj6k;%H@ZhF+8K#)M=P}FZK_iUZne^w1!tatV`WIzhKs%`NLF!!8> z{y$+^=+3K9dL%LLpN*dgx^nCI3Ii6Sh*owpEf?qI&iqiXyoQtT?o!&-G$`0^q?E-$ z^(_nPlm+c8yv*ej>{)gCVB|w1+G`&b;OauOXM$kVz?BK~QT_DmaDHx;{4f4%H*3_| zjS|H$CIJ|&x>za7=qEnImY<NTq>TDBBUn9N2a1;G_#i>P}DU;7Ix$!}m#d^7k1sa(tlMR`bnSfLb z^T)}>EK>3%8JWd;1x5J<#d;~3#RZ8#12n+KgaS<{)|h;dMVm=eb8-or&E#urIg?ki gtMJ;SWR@vpr&iilXV%(HZs1U5*3_(>oWms#09W@g5dZ)H diff --git a/app/soapbox/reducers/admin.js b/app/soapbox/reducers/admin.js index f120d879420be6cf298d9bd9b843dad5cf9b9881..45a21cc674a3e49107cf891a62323cb55fec4f4c 100644 GIT binary patch delta 442 zcmZ3^xq^R!>qHGcHWybP*AUlVwCWm;4A#fQ@O=~U%FaVpV2a)#7(}-3t1zDtyup<_#v=&T*$XYHgxZ@HF3X1Z} zQYZH^CQKG$vJ!{d12RMp<_w@^larW~;NIKZ#`K@DJ~^>CRl(84*V8XPG}tvLI35x} z@xh_a&aT11R$%uPrIwTyVGV*raNxl0C&7MlCZ^1k$+MVrfz;-QEdLoNx3Mb$0GlZaRsaA1 diff --git a/app/styles/components/admin.scss b/app/styles/components/admin.scss index c986d52e45..2712016e29 100644 --- a/app/styles/components/admin.scss +++ b/app/styles/components/admin.scss @@ -67,3 +67,30 @@ border-bottom: 1px solid var(--accent-color--med); } } + +.unapproved-account { + padding: 15px 20px; + font-size: 14px; + display: flex; + + &__nickname { + font-weight: bold; + } + + &__reason { + padding: 5px 0 5px 15px; + border-left: 3px solid hsla(var(--primary-text-color_hsl), 0.4); + color: var(--primary-text-color--faint); + } + + &__actions { + margin-left: auto; + padding-left: 20px; + display: flex; + flex-wrap: nowrap; + } +} + +.slist .item-list article:nth-child(2n-1) .unapproved-account { + background-color: hsla(var(--accent-color_hsl), 0.07); +}